return CDSCALENDAR_FAILED;
}
- resultCode = sqlite3_bind_text(statementHandle, 4, ((string)calendarColour).c_str(), -1, SQLITE_STATIC);
+ string calendarColourString = (string)calendarColour;
+ resultCode = sqlite3_bind_text(statementHandle, 4, calendarColourString.c_str(), -1, SQLITE_STATIC);
if (resultCode != 0){
return CDSCALENDAR_FAILED;
return CDSCALENDAR_FAILED;
}
- resultCode = sqlite3_bind_text(statementHandle, 2, string(calendarColour).c_str(), -1, SQLITE_STATIC);
+ string calendarColourString = calendarColour;
+ resultCode = sqlite3_bind_text(statementHandle, 2, calendarColourString.c_str(), -1, SQLITE_STATIC);
if (resultCode != 0){
return CDSCALENDAR_FAILED;