summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-12-06 20:43:22 +0100
committerAndras Timar <andras.timar@collabora.com>2018-01-17 08:38:58 +0100
commit9150385a3a152f66fdd5587727008eb240aa9ae0 (patch)
treeb96f422b26567cb704fe790440d2b5954545179e /sc
parentdaa1d120e7c94380e938c9632194d972fbb1c19a (diff)
Windows build fix - uninitialized variable
docsh4.cxx(1186) : warning C4701: potentially uninitialized local variable 'eLang' used Change-Id: I9a885cb8ce26f11f43c44ac1ca602d03ef84dfed Reviewed-on: https://gerrit.libreoffice.org/45988 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 0f685ee5a0913cab5826eec737f25328fabf256d)
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index aaf28e094dea..7fa1b98b6664 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1132,7 +1132,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
if ( !aLangText.isEmpty() )
{
- LanguageType eLang, eLatin, eCjk, eCtl;
+ LanguageType eLang = LANGUAGE_NONE, eLatin, eCjk, eCtl;
const OUString aDocLangPrefix("Default_");
const OUString aNoLang("LANGUAGE_NONE");
const OUString aResetLang("RESET_LANGUAGES");