made langKey const
This commit is contained in:
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user