[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 3 commits - accessibility/source editeng/source

Pavel Janík paveljanik at apache.org
Fri Nov 22 04:08:22 PST 2013


 accessibility/source/extended/accessiblelistboxentry.cxx    |    2 +-
 editeng/source/accessibility/AccessibleEditableTextPara.cxx |    2 +-
 editeng/source/misc/splwrap.cxx                             |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit c05431aa92fa2c7c7258418a6ecd651b5c26d982
Author: Pavel Janík <paveljanik at apache.org>
Date:   Fri Nov 22 10:48:29 2013 +0000

    WaE: Reorder initializations to prevent compiler warnings.

diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index ecb6b2f..ca385c8 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -164,13 +164,13 @@ SvxSpellWrapper::SvxSpellWrapper( Window* pWn,
 
     pWin        ( pWn ),
     xSpell      ( xSpellChecker ),
+    mpTextObj( NULL),
     bOtherCntnt ( bOther ),
     bDialog     ( sal_False ),
     bHyphen     ( sal_False ),
     bAuto       ( sal_False ),
     bStartChk   ( bOther ),
     bRevAllowed ( bRevAllow ),
-    mpTextObj( NULL),
     bAllRight   ( bIsAllRight )
 {
     Reference< beans::XPropertySet >  xProp( SvxGetLinguPropertySet() );
@@ -190,6 +190,7 @@ SvxSpellWrapper::SvxSpellWrapper( Window* pWn,
         const sal_Bool bStart, const sal_Bool bOther ) :
     pWin        ( pWn ),
     xHyph       ( xHyphenator ),
+    mpTextObj( NULL),
     bOtherCntnt ( bOther ),
     bDialog     ( sal_False ),
     bHyphen     ( sal_False ),
@@ -199,7 +200,6 @@ SvxSpellWrapper::SvxSpellWrapper( Window* pWn,
     bEndDone    ( bReverse && bStart && !bOther ),
     bStartChk   ( bOther ),
     bRevAllowed ( sal_False ),
-    mpTextObj( NULL),
     bAllRight   ( sal_True )
 {
 }
commit 2259256a390c4b6f83cfb5dbe4a65df5032aee47
Author: Pavel Janík <paveljanik at apache.org>
Date:   Fri Nov 22 10:42:41 2013 +0000

    WaE: unname unused variable to prevent compiler warnings.

diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 78d0bb1..57eec8b 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -1782,7 +1782,7 @@ namespace accessibility
         return OCommonAccessibleText::getTextRange(nStartIndex, nEndIndex);
     }
 //IAccessibility2 Implementation 2009-----
-    void AccessibleEditableTextPara::_correctValues( const sal_Int32 nIndex,
+    void AccessibleEditableTextPara::_correctValues( const sal_Int32 /* nIndex */,
                                            uno::Sequence< PropertyValue >& rValues)
     {
         SvxTextForwarder& rCacheTF = GetTextForwarder();
commit b989f4074ea70729d527b307bfbe49e01a0d3646
Author: Pavel Janík <paveljanik at apache.org>
Date:   Fri Nov 22 10:32:40 2013 +0000

    WaE: Prevent uninitialized variable warnings.

diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index 84d6961..af7620c 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -1190,7 +1190,7 @@ namespace accessibility
             SvLBoxEntry* pEntry = pBox->GetEntryFromPath( m_aEntryPath );
             if ( pEntry )
             {
-                sal_Int32 nValue, nValueMin, nValueMax;
+                sal_Int32 nValue(0), nValueMin(0), nValueMax(0);
                 aNumber >>= nValue;
                 getMinimumValue() >>= nValueMin;
                 getMaximumValue() >>= nValueMax;


More information about the Libreoffice-commits mailing list