summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/tpoption.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-11 13:20:49 +0200
committerNoel Grandin <noel@peralex.com>2015-02-23 09:26:58 +0200
commitba233e87efddf0a6751b35784dca1c805364ff3b (patch)
tree9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /sd/source/ui/dlg/tpoption.cxx
parenta2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff)
remove unnecessary parenthesis in return statements
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'sd/source/ui/dlg/tpoption.cxx')
-rw-r--r--sd/source/ui/dlg/tpoption.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index 15dbfe6c3179..9065e1ebe922 100644
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -102,7 +102,7 @@ void SdTpOptionsSnap::Reset( const SfxItemSet* rAttrs )
SfxTabPage* SdTpOptionsSnap::Create( vcl::Window* pWindow,
const SfxItemSet* rAttrs )
{
- return( new SdTpOptionsSnap( pWindow, *rAttrs ) );
+ return new SdTpOptionsSnap( pWindow, *rAttrs );
}
/*************************************************************************
@@ -143,7 +143,7 @@ bool SdTpOptionsContents::FillItemSet( SfxItemSet* rAttrs )
rAttrs->Put( aOptsItem );
bModified = true;
}
- return( bModified );
+ return bModified;
}
void SdTpOptionsContents::Reset( const SfxItemSet* rAttrs )
@@ -168,7 +168,7 @@ void SdTpOptionsContents::Reset( const SfxItemSet* rAttrs )
SfxTabPage* SdTpOptionsContents::Create( vcl::Window* pWindow,
const SfxItemSet* rAttrs )
{
- return( new SdTpOptionsContents( pWindow, *rAttrs ) );
+ return new SdTpOptionsContents( pWindow, *rAttrs );
}
/*************************************************************************
@@ -329,18 +329,18 @@ int SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet )
{
if( pActiveSet )
FillItemSet( pActiveSet );
- return( LEAVE_PAGE );
+ return LEAVE_PAGE;
}
WarningBox aWarnBox( GetParent(), WB_YES_NO, SD_RESSTR( STR_WARN_SCALE_FAIL ) );
short nReturn = aWarnBox.Execute();
if( nReturn == RET_YES )
- return( KEEP_PAGE );
+ return KEEP_PAGE;
if( pActiveSet )
FillItemSet( pActiveSet );
- return( LEAVE_PAGE );
+ return LEAVE_PAGE;
}
bool SdTpOptionsMisc::FillItemSet( SfxItemSet* rAttrs )
@@ -407,7 +407,7 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet* rAttrs )
bModified = true;
}
- return( bModified );
+ return bModified;
}
void SdTpOptionsMisc::Reset( const SfxItemSet* rAttrs )
@@ -491,7 +491,7 @@ void SdTpOptionsMisc::Reset( const SfxItemSet* rAttrs )
SfxTabPage* SdTpOptionsMisc::Create( vcl::Window* pWindow,
const SfxItemSet* rAttrs )
{
- return( new SdTpOptionsMisc( pWindow, *rAttrs ) );
+ return new SdTpOptionsMisc( pWindow, *rAttrs );
}
IMPL_LINK_NOARG(SdTpOptionsMisc, SelectMetricHdl_Impl)