[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Mon Mar 30 00:13:28 PDT 2015


 sc/source/ui/unoobj/condformatuno.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 7db40f6bcea9b18d04ed8e6ef103c4b367c11114
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Mar 30 09:12:33 2015 +0200

    warning C4701: potentially uninitialized local variable 'eType' used
    
    Change-Id: I5c7f81a30d06b4dbaddb3b64ea5467ed4faeac38

diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx
index ba9d496..4398b6b 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -812,7 +812,7 @@ namespace {
 
 void setColorScaleEntry(ScColorScaleEntry* pEntry, uno::Reference<sheet::XColorScaleEntry> xEntry)
 {
-    ScColorScaleEntryType eType;
+    ScColorScaleEntryType eType = ScColorScaleEntryType();
     sal_Int32 nApiType = xEntry->getType();
     bool bFound = false;
     for (size_t i = 0; i < SAL_N_ELEMENTS(aColorScaleEntryTypeMap); ++i)
@@ -1082,7 +1082,7 @@ namespace {
 
 void setDataBarEntry(ScColorScaleEntry* pEntry, uno::Reference<sheet::XDataBarEntry> xEntry)
 {
-    ScColorScaleEntryType eType;
+    ScColorScaleEntryType eType = ScColorScaleEntryType();
     sal_Int32 nApiType = xEntry->getType();
     bool bFound = false;
     for (size_t i = 0; i < SAL_N_ELEMENTS(aDataBarEntryTypeMap); ++i)
@@ -1464,7 +1464,7 @@ namespace {
 void setIconSetEntry(ScIconSetFormat* pFormat, uno::Reference<sheet::XIconSetEntry> xEntry, size_t nPos)
 {
     ScIconSetFormatData* pData = pFormat->GetIconSetData();
-    ScColorScaleEntryType eType;
+    ScColorScaleEntryType eType = ScColorScaleEntryType();
     sal_Int32 nApiType = xEntry->getType();
     bool bFound = false;
     for (size_t i = 0; i < SAL_N_ELEMENTS(aIconSetEntryTypeMap); ++i)


More information about the Libreoffice-commits mailing list