[Libreoffice-commits] .: ucb/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Jan 17 04:14:05 PST 2011


 ucb/source/sorter/sortresult.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0efebf6081e7939aac864093185cf6a997d6aa26
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Jan 17 12:13:59 2011 +0000

    some cppcheck cleaning

diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index 44c87c3..c18535d 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -938,7 +938,6 @@ Any SAL_CALL SortedResultSet::getPropertyValue( const OUString& PropertyName )
     }
     else if ( PropertyName.compareToAscii( "IsRowCountFinal" ) == 0 )
     {
-        sal_uInt32  nOrgCount = 0;
         sal_Bool    bOrgFinal = false;
         Any         aOrgRet;
 
@@ -952,6 +951,7 @@ Any SAL_CALL SortedResultSet::getPropertyValue( const OUString& PropertyName )
         {
             aOrgRet = Reference< XPropertySet >::query(mxOriginal)->
                 getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) );
+            sal_uInt32  nOrgCount = 0;
             aOrgRet >>= nOrgCount;
             if ( nOrgCount == maS2O.Count() )
                 aRet <<= (sal_Bool) sal_True;


More information about the Libreoffice-commits mailing list