[Libreoffice-commits] .: 2 commits - svtools/source tools/source

David Tardon dtardon at kemper.freedesktop.org
Thu Dec 23 03:14:46 PST 2010


 svtools/source/table/tablecontrol_impl.cxx |    2 +-
 tools/source/debug/debug.cxx               |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 728e72dc9c368d500da843a358be162dd455f6de
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Dec 23 11:20:04 2010 +0100

    suppress compiler warning

diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index c0d094a..e7f6c1d 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -328,7 +328,7 @@ namespace svt { namespace table
         if ( m_pModel->getRowCount() != m_nRowCount )
             return "row counts are inconsistent!";
 
-        if ( ( m_nCurColumn != COL_INVALID ) && !m_aColumnWidthsPixel.empty() && ( m_nCurColumn < 0 ) || ( m_nCurColumn >= (ColPos)m_aColumnWidthsPixel.size() ) )
+        if ( ( ( m_nCurColumn != COL_INVALID ) && !m_aColumnWidthsPixel.empty() && ( m_nCurColumn < 0 ) ) || ( m_nCurColumn >= (ColPos)m_aColumnWidthsPixel.size() ) )
             return "current column is invalid!";
 
         if ( m_aColumnWidthsPixel.size() != m_aAccColumnWidthsPixel.size() )
commit e65b1ea130961386c9a6d3966531f7247881f092
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Dec 23 11:19:55 2010 +0100

    suppress compiler warning

diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index c8234b4..13371a9 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -502,10 +502,12 @@ namespace
         sal_Char aBuf[2];
         size_t nValueLen = lcl_tryReadConfigString( _pLine, _nLineLen, _pKeyName, aBuf, sizeof( aBuf ) );
         if ( nValueLen )
+        {
             if ( strcmp( aBuf, "1" ) == 0 )
                 *_out_pnAllFlags |= _nCheckFlag;
             else
                 *_out_pnAllFlags &= ~_nCheckFlag;
+        }
     }
     void lcl_tryReadHexByte( const sal_Char* _pLine, size_t _nLineLen, const sal_Char* _pKeyName, BYTE* _out_pnValue )
     {


More information about the Libreoffice-commits mailing list