made langKey const

This commit is contained in:
heckflosse
2017-03-23 21:41:08 +01:00
parent 1f0688acd7
commit 07a6a1c792

View File

@@ -30,9 +30,8 @@ XTransProcess::XTransProcess () : FoldableToolPanel(this, "xtransprocess", M("TP
method = Gtk::manage (new MyComboBoxText ()); method = Gtk::manage (new MyComboBoxText ());
for( size_t i = 0; i < procparams::RAWParams::XTransSensor::numMethods; i++) { for( size_t i = 0; i < procparams::RAWParams::XTransSensor::numMethods; i++) {
std::string langKey(procparams::RAWParams::XTransSensor::methodstring[i]); static const std::regex what ("[() -]");
static const std::regex what ("[\\-() ]"); const std::string langKey = std::regex_replace (procparams::RAWParams::XTransSensor::methodstring[i], what, "");
langKey = std::regex_replace (langKey, what, "");
method->append(M("TP_RAW_" + Glib::ustring(langKey).uppercase())); method->append(M("TP_RAW_" + Glib::ustring(langKey).uppercase()));
} }