summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:35:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:34 +0100
commitb1fab4ab325636eacf7c0387d55b6cc184f89c5f (patch)
treeae4fc4883d0106d08384eb9f628b28087babe991 /sw/source/uibase/uiview
parente5bd0f8b0a83f5c7f0f204adc081b102c765ca8e (diff)
sw: Use appropriate OUString functions on string constants
Change-Id: I9c3e03324c69beb5af4c43da208086600876f875
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r--sw/source/uibase/uiview/formatclipboard.cxx4
-rw-r--r--sw/source/uibase/uiview/view.cxx2
-rw-r--r--sw/source/uibase/uiview/view1.cxx2
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx10
4 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/uiview/formatclipboard.cxx b/sw/source/uibase/uiview/formatclipboard.cxx
index 229fb83869ea..31adc5ac0acf 100644
--- a/sw/source/uibase/uiview/formatclipboard.cxx
+++ b/sw/source/uibase/uiview/formatclipboard.cxx
@@ -588,9 +588,9 @@ void SwFormatClipboard::Erase()
m_pTableItemSet = 0;
if( !m_aCharStyle.isEmpty() )
- m_aCharStyle = "";
+ m_aCharStyle.clear();
if( !m_aParaStyle.isEmpty() )
- m_aParaStyle = "";
+ m_aParaStyle.clear();
m_bPersistentCopy = false;
}
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 5fd4deb71035..d9c8990d9c0f 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -1217,7 +1217,7 @@ void SwView::ReadUserData( const OUString &rUserData, bool bBrowse )
m_pWrtShell->EnterSelFrmMode( &aCrsrPos2 );
}
m_pWrtShell->MakeSelVisible();
- m_sNewCrsrPos = "";
+ m_sNewCrsrPos.clear();
}
else if(USHRT_MAX != m_nNewPage)
{
diff --git a/sw/source/uibase/uiview/view1.cxx b/sw/source/uibase/uiview/view1.cxx
index b35767476df2..85bd42692725 100644
--- a/sw/source/uibase/uiview/view1.cxx
+++ b/sw/source/uibase/uiview/view1.cxx
@@ -75,7 +75,7 @@ void SwView::Activate(bool bMDIActivate)
if( !m_sSwViewData.isEmpty() )
{
ReadUserData(m_sSwViewData, false);
- m_sSwViewData = "";
+ m_sSwViewData.clear();
}
AttrChangedNotify(m_pWrtShell);
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index d3e3705206a4..43037c9c6ea6 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -263,7 +263,7 @@ void SwView::ExecDraw(SfxRequest& rReq)
case SID_DRAW_SELECT:
pFuncPtr = new DrawSelection(m_pWrtShell, m_pEditWin, this);
m_nDrawSfxId = m_nFormSfxId = SID_OBJECT_SELECT;
- m_sDrawCustom = "";
+ m_sDrawCustom.clear();
break;
case SID_DRAW_LINE:
@@ -276,7 +276,7 @@ void SwView::ExecDraw(SfxRequest& rReq)
case SID_DRAW_CAPTION_VERTICAL:
pFuncPtr = new ConstRectangle(m_pWrtShell, m_pEditWin, this);
m_nDrawSfxId = nSlotId;
- m_sDrawCustom = "";
+ m_sDrawCustom.clear();
break;
case SID_DRAW_POLYGON_NOFILL:
@@ -284,7 +284,7 @@ void SwView::ExecDraw(SfxRequest& rReq)
case SID_DRAW_FREELINE_NOFILL:
pFuncPtr = new ConstPolygon(m_pWrtShell, m_pEditWin, this);
m_nDrawSfxId = nSlotId;
- m_sDrawCustom = "";
+ m_sDrawCustom.clear();
break;
case SID_DRAW_ARC:
@@ -292,7 +292,7 @@ void SwView::ExecDraw(SfxRequest& rReq)
case SID_DRAW_CIRCLECUT:
pFuncPtr = new ConstArc(m_pWrtShell, m_pEditWin, this);
m_nDrawSfxId = nSlotId;
- m_sDrawCustom = "";
+ m_sDrawCustom.clear();
break;
case SID_FM_CREATE_CONTROL:
@@ -645,7 +645,7 @@ void SwView::SetDrawFuncPtr(SwDrawBase* pFuncPtr)
void SwView::SetSelDrawSlot()
{
m_nDrawSfxId = SID_OBJECT_SELECT;
- m_sDrawCustom = "";
+ m_sDrawCustom.clear();
}
bool SwView::AreOnlyFormsSelected() const