Changeset 530
- Timestamp:
- 05/22/09 09:36:40 (3 years ago)
- Files:
-
- trunk/src/benchmarksDialog.cpp (modified) (2 diffs)
- trunk/src/client.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/benchmarksDialog.cpp
r524 r530 262 262 { 263 263 // Use the name of the client if found, its location otherwise 264 clientLocation = BenchmarksManager::GetInstance()->GetClientLocationFromClientId(benchmarks[i]->GetClientId()) ;264 clientLocation = BenchmarksManager::GetInstance()->GetClientLocationFromClientId(benchmarks[i]->GetClientId()).c_str(); 265 265 #ifdef _FAHMON_WIN32_ 266 266 // fixes old benchmarks from version 2.3.1 and earlier which used forward slash instead of back slash … … 268 268 clientLocation.Replace(_T("/"), _T("\\")); 269 269 #endif 270 clientName = ClientsManager::GetInstance()->GetNameFromLocation(clientLocation.c_str()) ;270 clientName = ClientsManager::GetInstance()->GetNameFromLocation(clientLocation.c_str()).c_str(); 271 271 272 272 if(clientName.IsEmpty() == false) trunk/src/client.cpp
r527 r530 70 70 void Client::SetLocation(const wxString& location) 71 71 { 72 mLocation = location ;72 mLocation = location.c_str(); 73 73 74 74 // Ensure that the location ends with a slash … … 301 301 for(i=0; i<nbBenchmarks; ++i) 302 302 { 303 clientLocation = BenchmarksManager::GetInstance()->GetClientLocationFromClientId(benchmarks[i]->GetClientId()) ;304 clientName = ClientsManager::GetInstance()->GetNameFromLocation(clientLocation.c_str()) ;303 clientLocation = BenchmarksManager::GetInstance()->GetClientLocationFromClientId(benchmarks[i]->GetClientId()).c_str(); 304 clientName = ClientsManager::GetInstance()->GetNameFromLocation(clientLocation.c_str()).c_str(); 305 305 if (clientName == mName) 306 306 { … … 378 378 if (project != INVALID_PROJECT_ID && project != 0) 379 379 { 380 mCore = Core::IdToLongName(project->GetCoreId()) ;380 mCore = Core::IdToLongName(project->GetCoreId()).c_str(); 381 381 mCredit = project->GetCredit(); 382 mClientType = Core::IdToClientType(project->GetCoreId()) ;382 mClientType = Core::IdToClientType(project->GetCoreId()).c_str(); 383 383 if(mDownloadDate.IsValid() && project->GetPreferredDeadlineInDays() != 0) 384 384 { … … 413 413 } 414 414 415 mLog = myLog ;415 mLog = myLog.c_str(); 416 416 SetPreviousFAHlog(localFile); 417 417 return true; … … 568 568 #ifdef _FAHMON_WIN32_ 569 569 if(multiProtocolFile::GetFileProtocol(mLocation) != multiProtocolFile::HTTP && multiProtocolFile::GetFileProtocol(mLocation) != multiProtocolFile::FTP) 570 xyzInFile = mLocation + _T("work\\current.xyz");570 xyzInFile = wxString::Format(wxT("%swork\\current.xyz"), mLocation.c_str()); 571 571 else 572 572 #endif 573 xyzInFile = mLocation + _T("work/current.xyz");573 xyzInFile = wxString::Format(wxT("%swork/current.xyz"), mLocation.c_str()); 574 574 // Create the complete path of the files 575 575 xyzOutFile = PathManager::GetXYZPath() + wxString::Format(_T("%i"), mProjectId) + _T(".xyz");
