Fix compilation for Clang.

This commit is contained in:
Julien-Pierre Avérous 2016-03-03 17:08:43 +01:00
parent 10c231d172
commit a578201571
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void EncFS_Context::setRoot(const shared_ptr<DirNode> &r) {
if (r) rootCipherDir = r->rootDirectory();
}
bool EncFS_Context::isMounted() const { return root; }
bool EncFS_Context::isMounted() const { return root != NULL; }
int EncFS_Context::getAndResetUsageCounter() {
Lock lock(contextMutex);

View File

@ -157,7 +157,7 @@ class RenameOp {
~RenameOp();
operator bool() const { return renameList; }
operator bool() const { return renameList != NULL; }
bool apply();
void undo();