summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorAndreas Becker <atayoohoo@googlemail.com>2011-04-28 00:59:28 +0200
committerKatarina Machalkova <kmachalkova@suse.cz>2011-04-28 13:45:46 +0200
commit585b085f4bd1e0bcac8b007a59c18329e199411f (patch)
treebe1a3e604b1cab604f716a8036e6a890ba50aac9 /cui/source/options
parentf4ae23c798d4403599d5a12d6bb634668996cbd3 (diff)
fixed cppcheck warnings
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/dbregister.cxx2
-rw-r--r--cui/source/options/treeopt.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index 50cb59e16..094826fd9 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -279,7 +279,7 @@ void DbRegistrationOptionsPage::FillUserData()
aUserData += ';';
HeaderBarItemBits nBits = pHeaderBar->GetItemBits( ITEMID_TYPE );
sal_Bool bUp = ( ( nBits & HIB_UPARROW ) == HIB_UPARROW );
- aUserData += bUp ? '1' : '0';
+ aUserData += (bUp ? '1' : '0');
SetUserData( aUserData );
}
// -----------------------------------------------------------------------
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index afa039efe..e84eedb50 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -2191,7 +2191,7 @@ void OfaTreeOptionsDialog::ResizeTreeLB( void )
while( pEntry )
{
long n = aTreeLB.GetTextWidth( aTreeLB.GetEntryText( static_cast< SvLBoxEntry* >( pEntry ) ) );
- n += ( nDepth == 0 )? nIndent0 : nIndent1;
+ n += ((nDepth == 0) ? nIndent0 : nIndent1);
if( n > nDelta )
nDelta = n;
@@ -2778,4 +2778,4 @@ void ExtensionsTabPage::SavePage()
DispatchAction( C2U("ok") );
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */