Skip to content

Commit c17f663

Browse files
committed
Fix c_str() string issue
1 parent 40cafcf commit c17f663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/SQLHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,8 +2531,8 @@ bool CSQLHelper::OpenDatabase()
25312531
if (dbversion < 128)
25322532
{
25332533
//Two more files to remove
2534-
std::remove(szWWWFolder + "/js/domoticzblocks.js.gz");
2535-
std::remove(szWWWFolder + "/js/domoticzblocks_messages_en.js.gz");
2534+
std::remove(std::string(szWWWFolder + "/js/domoticzblocks.js.gz").c_str());
2535+
std::remove(std::string(szWWWFolder + "/js/domoticzblocks_messages_en.js.gz").c_str());
25362536
}
25372537
}
25382538
else if (bNewInstall)

0 commit comments

Comments
 (0)