瀏覽代碼

Use OString directly instead of std::string

Visual Studio complains that it can't convert std::string into OString
for the lines "scu.setPeerHostName(host);" and
"scu.setPeerAETitle(peerAET);". There is no advantage here to use
std::string so let's use OString directly.
Julien Finet 14 年之前
父節點
當前提交
16770545c7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Applications/ctkDICOMDemoSCU/ctkDICOMDemoSCUMain.cpp

+ 2 - 2
Applications/ctkDICOMDemoSCU/ctkDICOMDemoSCUMain.cpp

@@ -44,9 +44,9 @@ int main(int argc, char** argv)
     return 2;
   } 
   
-  std::string host = argv[1];
+  OString host(argv[1]);
   unsigned int port = atoi(argv[2]);
-  std::string peerAET  = "";
+  OString peerAET;
   if (argc > 3)
   {
     peerAET = argv[3];