Skip to content
Snippets Groups Projects
Commit 4796d431 authored by florian's avatar florian
Browse files

STY: Formatting

parent f17a3636
No related branches found
No related tags found
1 merge request!12F consolidation
Pipeline #12218 failed
...@@ -20,9 +20,10 @@ ...@@ -20,9 +20,10 @@
*/ */
/** /**
* DataTypes have 2 dimensions: They may be atomic or reference typed, and they may be scalar or * DataTypes have 2 dimensions: They may be atomic or reference typed, and they
* list valued. If they are atomic, they have an AtomicDataType. If they are reference typed, the * may be scalar or list valued. If they are atomic, they have an
* reference name can be obtained with GetName(). * AtomicDataType. If they are reference typed, the reference name can be
* obtained with GetName().
*/ */
#ifndef CAOSDB_DATA_TYPE_H #ifndef CAOSDB_DATA_TYPE_H
......
...@@ -559,8 +559,8 @@ private: ...@@ -559,8 +559,8 @@ private:
* *
* Should only be instantiated and write-accessed by the owning entity. * Should only be instantiated and write-accessed by the owning entity.
* *
* Note that iterating over the Property contents only works via references, since the Property copy * Note that iterating over the Property contents only works via references,
* constructor is deliberately disabled: * since the Property copy constructor is deliberately disabled:
* *
* \code * \code
* // Accessing single properties as reference * // Accessing single properties as reference
......
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
#include "caosdb/transaction.h" // for Transaction #include "caosdb/transaction.h" // for Transaction
#include "caosdb/value.h" // for Value #include "caosdb/value.h" // for Value
#include <exception> #include <exception>
#include <google/protobuf/arena.h> // for Arena #include <google/protobuf/arena.h> // for Arena
#include <gtest/gtest-message.h> // for Message #include <gtest/gtest-message.h> // for Message
#include <gtest/gtest-test-part.h> // for TestPartResult, Sui... #include <gtest/gtest-test-part.h> // for TestPartResult, Sui...
#include <gtest/gtest_pred_impl.h> // for Test, EXPECT_EQ #include <gtest/gtest_pred_impl.h> // for Test, EXPECT_EQ
#include <iostream> #include <iostream>
#include <memory> // for allocator, shared_ptr #include <memory> // for allocator, shared_ptr
#include <stdexcept> #include <stdexcept>
...@@ -398,7 +398,7 @@ TEST(test_entity, test_property_iterator) { ...@@ -398,7 +398,7 @@ TEST(test_entity, test_property_iterator) {
ASSERT_EQ(entity.GetProperties().size(), 5); ASSERT_EQ(entity.GetProperties().size(), 5);
int counter = 0; int counter = 0;
for (auto &property : entity.GetProperties()) { for (auto &property : entity.GetProperties()) {
// TODO Copy constructor was deleted // TODO(tf) Copy constructor was deleted
// auto nonref_property = entity.GetProperties().at(counter); // auto nonref_property = entity.GetProperties().at(counter);
auto name = "PROPERTY-" + std::to_string(counter); auto name = "PROPERTY-" + std::to_string(counter);
EXPECT_EQ(property.GetName(), name); EXPECT_EQ(property.GetName(), name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment