summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/vba/vbatabstops.cxx2
-rw-r--r--sw/source/uibase/uiview/view1.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx
index 0c2ee09dea33..2f18e784dcb8 100644
--- a/sw/source/ui/vba/vbatabstops.cxx
+++ b/sw/source/ui/vba/vbatabstops.cxx
@@ -207,7 +207,7 @@ uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, co
style::TabStop* pOldTab = aOldTabs.getArray();
style::TabStop* pNewTab = aNewTabs.getArray();
pNewTab[0] = aTab;
- for( sal_Int32 nIndex = 0; nIndex < nTabs && !bOverWriter; nIndex++ )
+ for (sal_Int32 nIndex = 0; nIndex < nTabs; nIndex++)
{
if( pOldTab[nIndex].Position == nPosition )
{
diff --git a/sw/source/uibase/uiview/view1.cxx b/sw/source/uibase/uiview/view1.cxx
index e985721e78e5..556899c1e416 100644
--- a/sw/source/uibase/uiview/view1.cxx
+++ b/sw/source/uibase/uiview/view1.cxx
@@ -193,7 +193,7 @@ void SwView::StateFormatPaintbrush(SfxItemSet &rSet)
if(!m_pFormatClipboard)
return;
- bool bHasContent = m_pFormatClipboard && m_pFormatClipboard->HasContent();
+ const bool bHasContent = m_pFormatClipboard->HasContent();
if( !bHasContent &&
!SwFormatClipboard::CanCopyThisType( GetWrtShell().GetSelectionType())
)