From: <pst...@us...> - 2011-08-05 01:25:07
|
Revision: 874 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=874&view=rev Author: pstieber Date: 2011-08-05 01:25:01 +0000 (Fri, 05 Aug 2011) Log Message: ----------- Simplified some string code. Modified Paths: -------------- trunk/jazz/src/Dialogs/SnapDialog.cpp Modified: trunk/jazz/src/Dialogs/SnapDialog.cpp =================================================================== --- trunk/jazz/src/Dialogs/SnapDialog.cpp 2011-08-05 01:22:58 UTC (rev 873) +++ trunk/jazz/src/Dialogs/SnapDialog.cpp 2011-08-05 01:25:01 UTC (rev 874) @@ -110,15 +110,14 @@ //----------------------------------------------------------------------------- bool JZSnapDialog::TransferDataFromWindow() { - wxString SelectedValue = mpSnapValueChoice->GetStringSelection(); - string SelectedString = SelectedValue.c_str(); + string SelectedValue = mpSnapValueChoice->GetStringSelection(); for ( map<int, string>::const_iterator iLimitSteps = gLimitSteps.begin(); iLimitSteps != gLimitSteps.end(); ++iLimitSteps) { const string& String = iLimitSteps->second; - if (SelectedString == String) + if (SelectedValue == String) { mSnapDenominator = iLimitSteps->first; break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |