From c83ee34a642ead0007b69b2dd93e18d25e6606fa Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 29 Aug 2013 14:50:10 +0300 Subject: Include for EXTRA_BUILDID Fix loplugin error: checking whether a config macro EXTRA_BUILDID is defined. Change-Id: Ieb04a8da4dc54b41f4df1d63b5e70ffb7ca7bb01 --- cui/source/dialogs/about.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cui/source/dialogs/about.cxx') diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 73fe04ebc5d5..54d4fbf00de7 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + #include #include #include @@ -242,10 +244,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; } -- cgit