diff options
author | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
commit | e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch) | |
tree | ec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/files.cc | |
parent | b65bf4d5198c19095e3084a88983680df19ec5ee (diff) | |
download | crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip |
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 19fff4c41b..75823cb7eb 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -256,12 +256,12 @@ string get_cache_name(const string &filename) bool is_absolute_path(const string &path) { - return (!path.empty() - && (path[0] == FILE_SEPARATOR + return !path.empty() + && (path[0] == FILE_SEPARATOR #ifdef TARGET_OS_WINDOWS - || path.find(':') != string::npos + || path.find(':') != string::npos #endif - )); + ); } // Concatenates two paths, separating them with FILE_SEPARATOR if necessary. @@ -298,7 +298,7 @@ string get_path_relative_to(const string &referencefile, string change_file_extension(const string &filename, const string &ext) { const string::size_type pos = filename.rfind('.'); - return ((pos == string::npos? filename : filename.substr(0, pos)) + ext); + return (pos == string::npos? filename : filename.substr(0, pos)) + ext; } time_t file_modtime(const string &file) |