]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/cpp/DataBoardTest/DataBoard/OptionalType.cpp
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / DataBoard / OptionalType.cpp
index dbc53167395dbf5f635e233d3c3f3a87de30d2ca..f45182a5c39f6565c680a82fa34210c47023491a 100644 (file)
@@ -1,52 +1,52 @@
-#include "OptionalType.h"\r
-\r
-namespace Databoard {\r
-       namespace Type {\r
-\r
-               OptionalType::OptionalType()\r
-               {\r
-                       componentType = NULL;\r
-               }\r
-\r
-               OptionalType::OptionalType(DataType* componentType)\r
-               {\r
-                       this->componentType = componentType;\r
-               }\r
-\r
-               OptionalType::~OptionalType()\r
-               {\r
-                       if(componentType != NULL)\r
-                       {\r
-                               delete componentType;\r
-                       }\r
-               }\r
-\r
-               DataType* OptionalType::getComponentType()\r
-               {\r
-                       return componentType;\r
-               }\r
-\r
-               void OptionalType::setComponentType(DataType* componentType)\r
-               {\r
-                       this->componentType = componentType;\r
-               }\r
-\r
-               std::string OptionalType::writeOut(int /*indent*/)\r
-               {\r
-                       std::string s;\r
-\r
-                       s.append("Optional");\r
-\r
-                       s += "(";\r
-\r
-                       if(componentType != NULL)\r
-                       {\r
-                               s += componentType->writeOut();\r
-                       }\r
-\r
-                       s += ")";\r
-\r
-                       return s;\r
-               }\r
-       }\r
-}\r
+#include "OptionalType.h"
+
+namespace Databoard {
+       namespace Type {
+
+               OptionalType::OptionalType()
+               {
+                       componentType = NULL;
+               }
+
+               OptionalType::OptionalType(DataType* componentType)
+               {
+                       this->componentType = componentType;
+               }
+
+               OptionalType::~OptionalType()
+               {
+                       if(componentType != NULL)
+                       {
+                               delete componentType;
+                       }
+               }
+
+               DataType* OptionalType::getComponentType()
+               {
+                       return componentType;
+               }
+
+               void OptionalType::setComponentType(DataType* componentType)
+               {
+                       this->componentType = componentType;
+               }
+
+               std::string OptionalType::writeOut(int /*indent*/)
+               {
+                       std::string s;
+
+                       s.append("Optional");
+
+                       s += "(";
+
+                       if(componentType != NULL)
+                       {
+                               s += componentType->writeOut();
+                       }
+
+                       s += ")";
+
+                       return s;
+               }
+       }
+}