@@ -8,7 +8,8 @@ FSpeechRecognitionWorker::FSpeechRecognitionWorker() {}
8
8
9
9
vector<string> FSpeechRecognitionWorker::Split (string s) {
10
10
std::locale loc;
11
- regex r (" \\ s+" );
11
+ const char * regexStr = (char *)" \\ s+" ;
12
+ regex r (regexStr);
12
13
auto words_begin = std::sregex_iterator (s.begin (), s.end (), r);
13
14
auto words_end = std::sregex_iterator ();
14
15
@@ -203,11 +204,11 @@ void FSpeechRecognitionWorker::InitConfig() {
203
204
}
204
205
if (param.type == ESpeechRecognitionParamType::VE_BOOLEAN)
205
206
{
206
- if (stricmp (param.value , " 0" ) == 0 )
207
+ if (strcmp (param.value , " 0" ) == 0 )
207
208
{
208
209
cmd_ln_set_boolean_r (config, param.name , false );
209
210
}
210
- if (stricmp (param.value , " 1" ) == 0 )
211
+ if (strcmp (param.value , " 1" ) == 0 )
211
212
{
212
213
cmd_ln_set_boolean_r (config, param.name , true );
213
214
}
@@ -247,13 +248,13 @@ bool FSpeechRecognitionWorker::SetConfigParam(FString param, ESpeechRecognitionP
247
248
if (type == ESpeechRecognitionParamType::VE_BOOLEAN)
248
249
{
249
250
if (value.Equals (" true" , ESearchCase::IgnoreCase)) {
250
- paramValue = " 1" ;
251
+ paramValue = ( char *) " 1" ;
251
252
FSpeechRecognitionParam sphinxParam (paramName, type, paramValue);
252
253
sphinxParams.Add (sphinxParam);
253
254
return true ;
254
255
}
255
256
if (value.Equals (" false" , ESearchCase::IgnoreCase)) {
256
- paramValue = " 0" ;
257
+ paramValue = ( char *) " 0" ;
257
258
FSpeechRecognitionParam sphinxParam (paramName, type, paramValue);
258
259
sphinxParams.Add (sphinxParam);
259
260
return true ;
0 commit comments