[Libreoffice-commits] core.git: desktop/source
Lionel Elie Mamane
lionel at mamane.lu
Sat Sep 6 21:55:21 PDT 2014
desktop/source/app/app.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 40f164a2b86b8f266f1a47130baec09f95d3c56f
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Sun Sep 7 06:54:01 2014 +0200
microoptimisation: no need to compute string length to test emptiness
Change-Id: If5093bca0e16e0f631c8cd1a7f4dde8bbf7da077
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 2569530..3155d68 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1981,7 +1981,7 @@ IMPL_LINK_NOARG(Desktop, OpenClients_Impl)
EnableOleAutomation();
const char *pExitPostStartup = getenv ("OOO_EXIT_POST_STARTUP");
- if (pExitPostStartup && strlen (pExitPostStartup) > 0)
+ if (pExitPostStartup && *pExitPostStartup)
new ExitTimer();
} catch (const ::com::sun::star::uno::Exception &e) {
OUString a( "UNO exception during client open:\n" );
More information about the Libreoffice-commits
mailing list