diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-16 17:19:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-16 17:19:11 +0200 |
commit | 189c3a098e0ee5b64e2ab40c3980a2a654315468 (patch) | |
tree | d9a1147c3c0fe07ca75be0c4dcb6a4c5ca5b93e3 /sal/qa | |
parent | Try to fix loplugin:comparisonwithconstant's rewrite-with-macros issue (diff) | |
download | core-189c3a098e0ee5b64e2ab40c3980a2a654315468.tar.gz core-189c3a098e0ee5b64e2ab40c3980a2a654315468.zip |
Extend loplugin:comparisonwithconstant beyond integral types
Change-Id: Id3a8fd5d8b9975d3ae49af0648b39454310495fa
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/process/osl_process.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/process/osl_process_child.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx index ff97d3a55357..fa1b1c4905de 100644 --- a/sal/qa/osl/process/osl_process.cxx +++ b/sal/qa/osl/process/osl_process.cxx @@ -152,7 +152,7 @@ namespace void read_parent_environment(string_container_t* env_container) { - for (int i = 0; nullptr != environ[i]; i++) + for (int i = 0; environ[i] != nullptr; i++) env_container->push_back(OString(environ[i])); tidy_container(*env_container); } diff --git a/sal/qa/osl/process/osl_process_child.cxx b/sal/qa/osl/process/osl_process_child.cxx index a1791c6f9b60..36729ee1b968 100644 --- a/sal/qa/osl/process/osl_process_child.cxx +++ b/sal/qa/osl/process/osl_process_child.cxx @@ -82,7 +82,7 @@ void w_to_a(LPCTSTR _strW, LPSTR strA, DWORD size) void dump_env(char* file_path) { std::ofstream file(file_path); - for (int i = 0; nullptr != environ[i]; ++i) + for (int i = 0; environ[i] != nullptr; ++i) file << environ[i] << '\0'; } #endif |