diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-23 15:21:33 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-23 15:21:33 -0800 |
| commit | 80f1563c6b6204d09b750944433d51047c46afba (patch) | |
| tree | a4a87582c3d5f7e9a5ed191ed826c65590faf447 /toolsrc/src/vcpkg.cpp | |
| parent | a413b523e2a4e96c2e2cc3eb4e24e11f7ac75b52 (diff) | |
| download | vcpkg-80f1563c6b6204d09b750944433d51047c46afba.tar.gz vcpkg-80f1563c6b6204d09b750944433d51047c46afba.zip | |
Use empty() instead of comparing with size()
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index 0af6bd76a..9f29dcdd2 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -214,7 +214,7 @@ static void load_config() static std::string trim_path_from_command_line(const std::string& full_command_line) { Checks::check_exit( - VCPKG_LINE_INFO, full_command_line.size() > 0, "Internal failure - cannot have empty command line"); + VCPKG_LINE_INFO, !full_command_line.empty(), "Internal failure - cannot have empty command line"); if (full_command_line[0] == '"') { |
