summaryrefslogtreecommitdiff
path: root/ucb/source/sorter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-01-17 12:13:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-17 12:13:59 +0000
commita743e9fefdc62f244790f23a2e753cb90c579d3d (patch)
treed0f73117794347890d39bf6caaf81294188cb7da /ucb/source/sorter
parentd3073bef2f2502469fe5bcc5a233d6170eea4ab6 (diff)
some cppcheck cleaning
Diffstat (limited to 'ucb/source/sorter')
-rw-r--r--ucb/source/sorter/sortresult.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index 3d62a442a89a..86382d8ecb48 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;