Przeglądaj źródła

Pass all string values as they are. Qt quotes them already. Issue #307.

Sascha Zelzer 12 lat temu
rodzic
commit
fef76cef38

+ 1 - 8
Libs/CommandLineModules/Backend/LocalProcess/ctkCmdLineModuleBackendLocalProcess.cpp

@@ -96,14 +96,7 @@ struct ctkCmdLineModuleBackendLocalProcessPrivate
             {
               if (parameter.tag() == "string")
               {
-                if (arg.length() != 0)
-                {
-                  cmdLineArgs << argFlag << arg;
-                }
-                else
-                {
-                  cmdLineArgs << argFlag << "\"\""; // Per discussion, Issue #307: For empty string, more explicit to output empty string.
-                }
+                cmdLineArgs << argFlag << arg;
               }
               else
               {