mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
This commit is contained in:
parent
b8d92236f6
commit
8d657a6517
9 changed files with 23 additions and 23 deletions
|
|
@ -494,7 +494,7 @@ bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest)
|
|||
{
|
||||
#ifdef WIN32
|
||||
return MoveFileExA(src.string().c_str(), dest.string().c_str(),
|
||||
MOVEFILE_REPLACE_EXISTING);
|
||||
MOVEFILE_REPLACE_EXISTING) != 0;
|
||||
#else
|
||||
int rc = std::rename(src.string().c_str(), dest.string().c_str());
|
||||
return (rc == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue