diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-08-29 14:50:10 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2013-08-29 14:17:16 +0200 |
commit | ec88782903955574774c93fbad7891a6d4753e7e (patch) | |
tree | 1e2796b3024e78a4168dceb6b7fc9adc06d0c4ef | |
parent | 09a894477f326af5683a8f5e51038e0c88453806 (diff) |
Fix loplugin error: checking whether a config macro EXTRA_BUILDID is defined.
Change-Id: Ieb04a8da4dc54b41f4df1d63b5e70ffb7ca7bb01
-rw-r--r-- | cui/source/dialogs/about.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 73fe04ebc5d5..4243180652dc 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -242,10 +242,11 @@ OUString AboutDialog::GetVersionString() sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId); } -#ifdef EXTRA_BUILDID - sVersion += "\n"; - sVersion += EXTRA_BUILDID; -#endif + if (strlen(EXTRA_BUILDID) > 0) + { + sVersion += "\n"; + sVersion += EXTRA_BUILDID; + } return sVersion; } |