aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
committerDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
commit303595942502f17c087fa28874c2b89117148c45 (patch)
tree75e904f611c8a27f2ed75866eb2cabe4e9468141 /lib/System/Win32
parent9f65c39f806186e1bbe1c9e4b670d198c69a81c1 (diff)
downloadexternal_llvm-303595942502f17c087fa28874c2b89117148c45.zip
external_llvm-303595942502f17c087fa28874c2b89117148c45.tar.gz
external_llvm-303595942502f17c087fa28874c2b89117148c45.tar.bz2
Use empty() instead of comparing size() with zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32')
-rw-r--r--lib/System/Win32/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index 8c6f3a8..ff5cc0a 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -418,7 +418,7 @@ Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
bool
Path::set(const std::string& a_path) {
- if (a_path.size() == 0)
+ if (a_path.empty())
return false;
std::string save(path);
path = a_path;