File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -601,8 +601,8 @@ namespace
601601 m_ArgMap.SetFromString (strSettings);
602602 // If build is 30 days old, default no report logging
603603 m_ArgMap.Get (" filter2" , strFilter, GetBuildAge () < 30 ? " +all" : " -all" );
604- m_ArgMap.Get (" min" , iMinSize, DEFAULT_MIN_SIZE);
605- m_ArgMap.Get (" max" , iMaxSize, DEFAULT_MAX_SIZE);
604+ m_ArgMap.Get (std::string ( " min" ) , iMinSize, DEFAULT_MIN_SIZE);
605+ m_ArgMap.Get (std::string ( " max" ) , iMaxSize, DEFAULT_MAX_SIZE);
606606 SaveReportSettings ();
607607 }
608608
Original file line number Diff line number Diff line change @@ -1579,7 +1579,7 @@ void CheckAndShowModelProblems()
15791579 CArgMap argMap;
15801580 argMap.SetFromString (GetApplicationSetting (" diagnostics" , " gta-model-fail" ));
15811581 argMap.Get (" reason" , strReason);
1582- argMap.Get (" id" , iModelId);
1582+ argMap.Get (std::string ( " id" ) , iModelId);
15831583 SetApplicationSetting (" diagnostics" , " gta-model-fail" , " " );
15841584
15851585 if (iModelId)
@@ -1604,9 +1604,9 @@ void CheckAndShowUpgradeProblems()
16041604 int iModelId = 0 , iUpgradeId, iFrame;
16051605 CArgMap argMap;
16061606 argMap.SetFromString (GetApplicationSetting (" diagnostics" , " gta-upgrade-fail" ));
1607- argMap.Get (" vehid" , iModelId);
1608- argMap.Get (" upgid" , iUpgradeId);
1609- argMap.Get (" frame" , iFrame);
1607+ argMap.Get (std::string ( " vehid" ) , iModelId);
1608+ argMap.Get (std::string ( " upgid" ) , iUpgradeId);
1609+ argMap.Get (std::string ( " frame" ) , iFrame);
16101610 SetApplicationSetting (" diagnostics" , " gta-upgrade-fail" , " " );
16111611
16121612 if (iModelId)
Original file line number Diff line number Diff line change @@ -873,7 +873,7 @@ namespace SharedUtil
873873 {
874874 std::string temp;
875875 GetOption<T>(text, key, temp);
876- numbers = tmep ;
876+ numbers = temp ;
877877 }
878878 std::vector<SString> numberList;
879879 numbers.Split (separator, numberList);
Original file line number Diff line number Diff line change @@ -364,8 +364,9 @@ SString SharedUtil::GetPostUpdateConnect()
364364
365365 CArgMap argMap;
366366 argMap.SetFromString (strPostUpdateConnect);
367- SString strHost = argMap.Get (" host" );
368- time_t timeThen = (time_t )std::atoll (argMap.Get (" time" ));
367+ SString strHost = argMap.Get (std::string (" host" ));
368+ std::string timeKey = argMap.Get (std::string (" time" ));
369+ time_t timeThen = (time_t )std::atoll (timeKey.c_str ());
369370
370371 // Expire after 5 mins
371372 double seconds = difftime (time (NULL ), timeThen);
@@ -674,7 +675,7 @@ bool SharedUtil::ProcessPendingBrowseToSolution()
674675 if (!argMap.Get (" type" , strType))
675676 return false ;
676677 argMap.Get (" message" , strMessageBoxMessage);
677- argMap.Get (" flags" , iFlags);
678+ argMap.Get (std::string ( " flags" ) , iFlags);
678679 argMap.Get (" ecode" , strErrorCode);
679680
680681 ClearPendingBrowseToSolution ();
You can’t perform that action at this time.
0 commit comments