diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:16:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:27 +0100 |
commit | 2df257e95e655de7b0f888b033a56cd800d3002e (patch) | |
tree | 289bad43a8dbeb85e0af6447eadf87c79f13fdb6 /helpcompiler/source/HelpSearch.cxx | |
parent | 06c5c630201152964c19c47262a5a54fcb6cf6c2 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I6e34abccb0bda1c76e30ab973b8fd827d6c99c72
Diffstat (limited to 'helpcompiler/source/HelpSearch.cxx')
-rw-r--r-- | helpcompiler/source/HelpSearch.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpSearch.cxx b/helpcompiler/source/HelpSearch.cxx index 6b0c4202c9cc..603b11795ef8 100644 --- a/helpcompiler/source/HelpSearch.cxx +++ b/helpcompiler/source/HelpSearch.cxx @@ -42,7 +42,7 @@ bool HelpSearch::query(OUString const &queryStr, bool captionOnly, for (size_t i = 0; i < hits->length(); ++i) { lucene::document::Document &doc = hits->doc(i); // Document* belongs to Hits. wchar_t const *path = doc.get(L"path"); - rDocuments.push_back(TCHARArrayToOUString(path != 0 ? path : L"")); + rDocuments.push_back(TCHARArrayToOUString(path != nullptr ? path : L"")); rScores.push_back(hits->score(i)); } |