summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/recording/dispatchrecorder.cxx2
-rw-r--r--framework/source/uielement/menubarmanager.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx
index 160da94acde2..387988b5bc39 100644
--- a/framework/source/recording/dispatchrecorder.cxx
+++ b/framework/source/recording/dispatchrecorder.cxx
@@ -259,7 +259,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( const css::uno::Any& aValue, OUS
{
// character variables are recorded as strings, back conversion must be handled in client code
aArgumentBuffer.append("\"");
- if ( (*nVal == '\"') )
+ if ( *nVal == '\"' )
// encode \" to \"\"
aArgumentBuffer.append(*nVal);
aArgumentBuffer.append(*nVal);
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index 76b8182dca29..928a1fbf0c36 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -762,8 +762,8 @@ IMPL_LINK( MenuBarManager, Activate, Menu *, pMenu, bool )
// There is no dispatch mechanism for the special window list menu items,
// because they are handled directly through XFrame->activate!!!
// Don't update dispatches for special file menu items.
- if ( !(( pMenuItemHandler->nItemId >= START_ITEMID_WINDOWLIST &&
- pMenuItemHandler->nItemId < END_ITEMID_WINDOWLIST )))
+ if ( !( pMenuItemHandler->nItemId >= START_ITEMID_WINDOWLIST &&
+ pMenuItemHandler->nItemId < END_ITEMID_WINDOWLIST ) )
{
Reference< XDispatch > xMenuItemDispatch;