summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-23 02:42:13 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-23 02:42:13 +0300
commit284c51477a7f445bde3c6bfc56539fdc3912a0fa (patch)
tree7ed101f0b1dfcfb6786cf3a9ec50d23a8326116a /src
parent2b6106c41f3959d4deb8efc58c9055de0339959e (diff)
downloadplus-284c51477a7f445bde3c6bfc56539fdc3912a0fa.tar.gz
plus-284c51477a7f445bde3c6bfc56539fdc3912a0fa.tar.bz2
plus-284c51477a7f445bde3c6bfc56539fdc3912a0fa.tar.xz
plus-284c51477a7f445bde3c6bfc56539fdc3912a0fa.zip
Fix code style.
Diffstat (limited to 'src')
-rw-r--r--src/fs/virtfsdir.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/virtfsdir.cpp b/src/fs/virtfsdir.cpp
index 4ca4acafa..c3471b2d7 100644
--- a/src/fs/virtfsdir.cpp
+++ b/src/fs/virtfsdir.cpp
@@ -283,7 +283,6 @@ namespace VirtFsDir
VirtDirEntry *const entry = *it;
if (Files::existsLocal(entry->mRootDir + name))
return true;
-
}
return false;
}
@@ -504,7 +503,7 @@ namespace VirtFsDir
reportAlways("VirtFsDir::fileLength error.");
return -1;
}
- return (int64_t)statbuf.st_size;
+ return static_cast<int64_t>(statbuf.st_size);
}
int64_t tell(VirtFile *restrict const file)
@@ -558,7 +557,7 @@ namespace VirtFsDir
reportAlways("VirtFsDir::fileLength error.");
return -1;
}
- const int64_t len = (int64_t)statbuf.st_size;
+ const int64_t len = static_cast<int64_t>(statbuf.st_size);
return pos < 0 || len < 0 || pos >= len;
}
} // namespace VirtFs