Parcourir la source

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 il y a 14 ans
Parent
commit
16770545c7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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];