Sascha Zelzer 13 anni fa
parent
commit
df191d246d

+ 4 - 4
Libs/ModuleDescription/ctkModuleDescription.cpp

@@ -114,7 +114,7 @@ bool ctkModuleDescription ::readParameterFile(const QString& filename)
   QFile file(filename);
   if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
     {
-    std::cout << "Parameter file " << filename.toStdString( ) << " could not be opened." << endl;
+    std::cout << "Parameter file " << filename.toStdString( ) << " could not be opened." << std::endl;
     return false;
     }
 
@@ -162,7 +162,7 @@ writeParameterFile(const QString& filename, bool withHandlesToBulkParameters)con
 
   if (!rtp.open(QIODevice::WriteOnly | QIODevice::Text))
     {
-    std::cout << "Parameter file " << filename.toStdString() << " could not be opened for writing." << endl;
+    std::cout << "Parameter file " << filename.toStdString() << " could not be opened for writing." << std::endl;
     return false;
     }
 
@@ -180,9 +180,9 @@ writeParameterFile(const QString& filename, bool withHandlesToBulkParameters)con
 QTextStream & operator<<(QTextStream &os, const ctkModuleDescription &module)
 {
   os << QHash<QString, QString>(module);
-  os << "Icon: " << !module.icon().isNull() << endl;
+  os << "Icon: " << QBool(!module.icon().isNull()) << '\n';
 
-  os << "ParameterGroups: " << endl;
+  os << "ParameterGroups: " << '\n';
   foreach(const ctkModuleParameterGroup* group, module.ParameterGroups)
     {
     os << *group;

+ 1 - 1
Libs/ModuleDescription/ctkModuleParameter.cpp

@@ -85,7 +85,7 @@ QTextStream & operator<<(QTextStream &os, const QHash<QString, QString> &hash)
         itProp != hash.end( ) ; 
         itProp++ )
     {
-    os << itProp.key( ) << ": " << itProp.value( ) << endl;
+    os << itProp.key( ) << ": " << itProp.value( ) << '\n';
     }
 
   return os;