summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 07:43:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 07:43:52 +0200
commit5536aea8228778e00b9f1ca8199d858cd03780ad (patch)
treed244654bc3c5aa4e5b3a87df5f004ef61049996c /sw
parent20f6a6b159c69771dc0e087f63b6c701908e32e2 (diff)
Let OUStringLiteral1 take its arg as ctor arg, not template arg
...which makes it more flexible, can now also be used on non-const arguments. The drawback of the argument no longer being a compile-time constant is remedied by making the ctor constexpr. Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/core/uwriter.cxx14
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx14
-rw-r--r--sw/source/core/bastyp/calc.cxx2
-rw-r--r--sw/source/core/crsr/crstrvl.cxx2
-rw-r--r--sw/source/core/doc/DocumentFieldsManager.cxx4
-rw-r--r--sw/source/core/doc/acmplwrd.cxx4
-rw-r--r--sw/source/core/doc/docfld.cxx10
-rw-r--r--sw/source/core/doc/doctxm.cxx2
-rw-r--r--sw/source/core/docnode/ndsect.cxx2
-rw-r--r--sw/source/core/docnode/section.cxx4
-rw-r--r--sw/source/core/edit/autofmt.cxx4
-rw-r--r--sw/source/core/edit/editsh.cxx2
-rw-r--r--sw/source/core/edit/edlingu.cxx4
-rw-r--r--sw/source/core/fields/cellfml.cxx8
-rw-r--r--sw/source/core/fields/dbfld.cxx12
-rw-r--r--sw/source/core/fields/ddefld.cxx2
-rw-r--r--sw/source/core/fields/docufld.cxx2
-rw-r--r--sw/source/core/fields/reffld.cxx2
-rw-r--r--sw/source/core/frmedt/fetab.cxx4
-rw-r--r--sw/source/core/graphic/ndgrf.cxx4
-rw-r--r--sw/source/core/tox/tox.cxx6
-rw-r--r--sw/source/core/tox/txmsrt.cxx6
-rw-r--r--sw/source/core/txtnode/thints.cxx4
-rw-r--r--sw/source/core/unocore/unofield.cxx6
-rw-r--r--sw/source/core/unocore/unoidx.cxx2
-rw-r--r--sw/source/core/unocore/unosect.cxx14
-rw-r--r--sw/source/filter/ascii/ascatr.cxx2
-rw-r--r--sw/source/filter/html/htmlsect.cxx4
-rw-r--r--sw/source/filter/html/wrthtml.cxx2
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx2
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx2
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx6
-rw-r--r--sw/source/filter/xml/xmltbli.cxx4
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx2
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.cxx12
-rw-r--r--sw/source/ui/dialog/ascfldlg.cxx2
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx30
-rw-r--r--sw/source/ui/envelp/envlop1.cxx4
-rw-r--r--sw/source/ui/fldui/changedb.cxx6
-rw-r--r--sw/source/ui/fldui/flddb.cxx8
-rw-r--r--sw/source/ui/fldui/fldfunc.cxx2
-rw-r--r--sw/source/ui/fldui/fldvar.cxx12
-rw-r--r--sw/source/ui/index/cnttab.cxx14
-rw-r--r--sw/source/ui/index/swuiidxmrk.cxx2
-rw-r--r--sw/source/ui/misc/bookmark.cxx2
-rw-r--r--sw/source/ui/misc/glosbib.cxx8
-rw-r--r--sw/source/ui/misc/glossary.cxx12
-rw-r--r--sw/source/ui/vba/vbalisthelper.cxx2
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx8
-rw-r--r--sw/source/uibase/dialog/regionsw.cxx4
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx4
-rw-r--r--sw/source/uibase/docvw/edtwin2.cxx2
-rw-r--r--sw/source/uibase/fldui/fldmgr.cxx8
-rw-r--r--sw/source/uibase/misc/glosdoc.cxx10
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx8
-rw-r--r--sw/source/uibase/shells/textfld.cxx6
-rw-r--r--sw/source/uibase/shells/textsh2.cxx6
-rw-r--r--sw/source/uibase/uno/unoatxt.cxx4
-rw-r--r--sw/source/uibase/utlui/content.cxx2
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx4
-rw-r--r--sw/source/uibase/utlui/gloslst.cxx6
-rw-r--r--sw/source/uibase/wrtsh/wrtsh2.cxx4
62 files changed, 178 insertions, 178 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index 2fafc7416386..e994fcbfbe27 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -377,7 +377,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsExpandFootnoteReplaceMode()
ExpandMode::ExpandFields | ExpandMode::ExpandFootnote | ExpandMode::ReplaceMode);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(
- OUString("AAAAA BBBBB " + OUStringLiteral1<CHAR_ZWSP>() + " CCCCC " + OUStringLiteral1<CHAR_ZWSP>() + " DDDDD"),
+ OUString("AAAAA BBBBB " + OUStringLiteral1(CHAR_ZWSP) + " CCCCC " + OUStringLiteral1(CHAR_ZWSP) + " DDDDD"),
sViewText);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2),
aModelToViewHelper.getFootnotePositions().size());
@@ -421,7 +421,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsHideInvisible()
ModelToViewHelper aModelToViewHelper(*pTextNode, ExpandMode::HideInvisible);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(
- OUString("AAAAA CCCCC " + OUStringLiteral1<CH_TXTATR_BREAKWORD>() + " DDDDD"),
+ OUString("AAAAA CCCCC " + OUStringLiteral1(CH_TXTATR_BREAKWORD) + " DDDDD"),
sViewText);
}
@@ -432,7 +432,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsHideRedlined()
ModelToViewHelper aModelToViewHelper(*pTextNode, ExpandMode::HideDeletions);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(
- OUString("AAAABB " + OUStringLiteral1<CH_TXTATR_BREAKWORD>() + " CCCCC " + OUStringLiteral1<CH_TXTATR_BREAKWORD>() + " DDDDD"),
+ OUString("AAAABB " + OUStringLiteral1(CH_TXTATR_BREAKWORD) + " CCCCC " + OUStringLiteral1(CH_TXTATR_BREAKWORD) + " DDDDD"),
sViewText);
}
@@ -453,7 +453,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsHideInvisibleExpandFootnoteRepl
ExpandMode::ExpandFields | ExpandMode::HideInvisible | ExpandMode::ExpandFootnote | ExpandMode::ReplaceMode);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(
- OUString("AAAAA CCCCC " + OUStringLiteral1<CHAR_ZWSP>() + " DDDDD"),
+ OUString("AAAAA CCCCC " + OUStringLiteral1(CHAR_ZWSP) + " DDDDD"),
sViewText);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1),
aModelToViewHelper.getFootnotePositions().size());
@@ -481,7 +481,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsHideHideRedlinedExpandFootnoteR
ExpandMode::ExpandFields | ExpandMode::HideDeletions | ExpandMode::ExpandFootnote | ExpandMode::ReplaceMode);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(
- OUString("AAAABB " + OUStringLiteral1<CHAR_ZWSP>() + " CCCCC " + OUStringLiteral1<CHAR_ZWSP>() + " DDDDD"),
+ OUString("AAAABB " + OUStringLiteral1(CHAR_ZWSP) + " CCCCC " + OUStringLiteral1(CHAR_ZWSP) + " DDDDD"),
sViewText);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2),
aModelToViewHelper.getFootnotePositions().size());
@@ -523,7 +523,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsHideInvisibleHideRedlinedExpand
ExpandMode::ExpandFields | ExpandMode::HideInvisible | ExpandMode::HideDeletions | ExpandMode::ExpandFootnote | ExpandMode::ReplaceMode);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(sViewText,
- OUString("AAAACCCCC " + OUStringLiteral1<CHAR_ZWSP>() + " DDDDD"));
+ OUString("AAAACCCCC " + OUStringLiteral1(CHAR_ZWSP) + " DDDDD"));
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1),
aModelToViewHelper.getFootnotePositions().size());
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(10),
@@ -549,7 +549,7 @@ void SwDocTest::testModelToViewHelperExpandFieldsExpandFootnoteReplaceMode2()
ExpandMode::ExpandFields | ExpandMode::ExpandFootnote | ExpandMode::ReplaceMode);
OUString sViewText = aModelToViewHelper.getViewText();
CPPUNIT_ASSERT_EQUAL(
- OUString("AAAAA" + OUStringLiteral1<CHAR_ZWSP>() + "CCCCC"),
+ OUString("AAAAA" + OUStringLiteral1(CHAR_ZWSP) + "CCCCC"),
sViewText);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0),
aModelToViewHelper.getFootnotePositions().size());
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 5f5e8339495b..b2ebfffca846 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -729,9 +729,9 @@ void SwUiWriterTest::testTdf98512()
pWrtShell->SetMark();
pWrtShell->SttEndDoc(/*bStt=*/false);
OUString const expected1(
- OUStringLiteral1<CH_TXT_ATR_INPUTFIELDSTART>() + "foo" + OUStringLiteral1<CH_TXT_ATR_INPUTFIELDEND>());
+ OUStringLiteral1(CH_TXT_ATR_INPUTFIELDSTART) + "foo" + OUStringLiteral1(CH_TXT_ATR_INPUTFIELDEND));
OUString const expected2(
- OUStringLiteral1<CH_TXT_ATR_INPUTFIELDSTART>() + "baz" + OUStringLiteral1<CH_TXT_ATR_INPUTFIELDEND>()
+ OUStringLiteral1(CH_TXT_ATR_INPUTFIELDSTART) + "baz" + OUStringLiteral1(CH_TXT_ATR_INPUTFIELDEND)
+ expected1);
CPPUNIT_ASSERT_EQUAL(expected2, pWrtShell->getShellCursor(false)->GetText());
sw::UndoManager& rUndoManager = pDoc->GetUndoManager();
@@ -1984,10 +1984,10 @@ void SwUiWriterTest::testTdf73660()
{
SwDoc* pDoc = createDoc();
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
- OUString aData1 = "First" + OUStringLiteral1<CHAR_SOFTHYPHEN>() + "Word";
- OUString aData2 = "Seco" + OUStringLiteral1<CHAR_SOFTHYPHEN>() + "nd";
- OUString aData3 = OUStringLiteral1<CHAR_SOFTHYPHEN>() + "Third";
- OUString aData4 = "Fourth" + OUStringLiteral1<CHAR_SOFTHYPHEN>();
+ OUString aData1 = "First" + OUStringLiteral1(CHAR_SOFTHYPHEN) + "Word";
+ OUString aData2 = "Seco" + OUStringLiteral1(CHAR_SOFTHYPHEN) + "nd";
+ OUString aData3 = OUStringLiteral1(CHAR_SOFTHYPHEN) + "Third";
+ OUString aData4 = "Fourth" + OUStringLiteral1(CHAR_SOFTHYPHEN);
OUString aData5 = "Fifth";
pWrtShell->Insert("We are inserting some text in the document to check the search feature ");
pWrtShell->Insert(aData1 + " ");
@@ -3534,7 +3534,7 @@ void SwUiWriterTest::testTdf96479()
{
// We want to verify the empty input text field in the bookmark
static const OUString emptyInputTextField =
- OUStringLiteral1<CH_TXT_ATR_INPUTFIELDSTART>() + OUStringLiteral1<CH_TXT_ATR_INPUTFIELDEND>();
+ OUStringLiteral1(CH_TXT_ATR_INPUTFIELDSTART) + OUStringLiteral1(CH_TXT_ATR_INPUTFIELDEND);
SwDoc* pDoc = createDoc();
SwXTextDocument *pTextDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index cba7c3cec371..6d12a7dc4bbf 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -1494,7 +1494,7 @@ OUString SwCalc::GetDBName(const OUString& rName)
return rName.copy( 0, nPos );
}
SwDBData aData = m_rDoc.GetDBData();
- return aData.sDataSource + OUStringLiteral1<DB_DELIM>() + aData.sCommand;
+ return aData.sDataSource + OUStringLiteral1(DB_DELIM) + aData.sCommand;
}
namespace
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 5c30d0b0b000..d9ec2180c893 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -2222,7 +2222,7 @@ bool SwCursorShell::SelectNxtPrvHyperlink( bool bNext )
OUString sText( pTextNd->GetExpandText( rAttr.GetStart(),
*rAttr.GetEnd() - rAttr.GetStart() ) );
- sText = sText.replaceAll(OUStringLiteral1<0x0a>(), "");
+ sText = sText.replaceAll(OUStringLiteral1(0x0a), "");
sText = comphelper::string::strip(sText, ' ');
if( !sText.isEmpty() )
diff --git a/sw/source/core/doc/DocumentFieldsManager.cxx b/sw/source/core/doc/DocumentFieldsManager.cxx
index 022b0553dcc2..7b7226dab204 100644
--- a/sw/source/core/doc/DocumentFieldsManager.cxx
+++ b/sw/source/core/doc/DocumentFieldsManager.cxx
@@ -65,8 +65,8 @@ namespace
if( aDBData != aDocData )
{
- sDBNumNm = aDBData.sDataSource + OUStringLiteral1<DB_DELIM>()
- + aDBData.sCommand + OUStringLiteral1<DB_DELIM>();
+ sDBNumNm = aDBData.sDataSource + OUStringLiteral1(DB_DELIM)
+ + aDBData.sCommand + OUStringLiteral1(DB_DELIM);
}
sDBNumNm += SwFieldType::GetTypeStr(TYP_DBSETNUMBERFLD);
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index 89acde7df587..26ba49bcb908 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -244,8 +244,8 @@ bool SwAutoCompleteWord::InsertWord( const OUString& rWord, SwDoc& rDoc )
return false;
}
- OUString aNewWord = rWord.replaceAll(OUStringLiteral1<CH_TXTATR_INWORD>(), "")
- .replaceAll(OUStringLiteral1<CH_TXTATR_BREAKWORD>(), "");
+ OUString aNewWord = rWord.replaceAll(OUStringLiteral1(CH_TXTATR_INWORD), "")
+ .replaceAll(OUStringLiteral1(CH_TXTATR_BREAKWORD), "");
pImpl->AddDocument(rDoc);
bool bRet = false;
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 66b6b01ab9f9..d450dcd5d647 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -418,8 +418,8 @@ void SwDoc::SetInitDBFields( bool b )
/// Get all databases that are used by fields
static OUString lcl_DBDataToString(const SwDBData& rData)
{
- return rData.sDataSource + OUStringLiteral1<DB_DELIM>()
- + rData.sCommand + OUStringLiteral1<DB_DELIM>()
+ return rData.sDataSource + OUStringLiteral1(DB_DELIM)
+ + rData.sCommand + OUStringLiteral1(DB_DELIM)
+ OUString::number(rData.nCommandType);
}
@@ -515,7 +515,7 @@ void SwDoc::GetAllDBNames( std::vector<OUString>& rAllDBNames )
const SwDSParams_t& rArr = pMgr->GetDSParamArray();
for (const auto& pParam : rArr)
{
- rAllDBNames.push_back(pParam->sDataSource + OUStringLiteral1<DB_DELIM>() + pParam->sCommand);
+ rAllDBNames.push_back(pParam->sDataSource + OUStringLiteral1(DB_DELIM) + pParam->sCommand);
}
#endif
}
@@ -543,7 +543,7 @@ std::vector<OUString>& SwDoc::FindUsedDBs( const std::vector<OUString>& rAllDBNa
const sal_Int32 nEndPos = sFormula.indexOf('.', nPos);
if( nEndPos>=0 )
{
- rUsedDBNames.push_back(sItem + OUStringLiteral1<DB_DELIM>() + sFormula.copy( nPos, nEndPos - nPos ));
+ rUsedDBNames.push_back(sItem + OUStringLiteral1(DB_DELIM) + sFormula.copy( nPos, nEndPos - nPos ));
}
}
}
@@ -691,7 +691,7 @@ namespace
inline OUString lcl_CutOffDBCommandType(const OUString& rName)
{
- return rName.replaceFirst(OUStringLiteral1<DB_DELIM>(), ".").getToken(0, DB_DELIM);
+ return rName.replaceFirst(OUStringLiteral1(DB_DELIM), ".").getToken(0, DB_DELIM);
}
}
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 7585c2d400ec..5ac636757cf3 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -1273,7 +1273,7 @@ void SwTOXBaseSection::UpdateSequence( const SwTextNode* pOwnChapterNode )
{
const SwSetExpField& rSeqField = dynamic_cast<const SwSetExpField&>(*(pFormatField->GetField()));
const OUString sName = GetSequenceName()
- + OUStringLiteral1<cSequenceMarkSeparator>()
+ + OUStringLiteral1(cSequenceMarkSeparator)
+ OUString::number( rSeqField.GetSeqNumber() );
SwTOXPara * pNew = new SwTOXPara( rTextNode, nsSwTOXElement::TOX_SEQUENCE, 1, sName );
// set indexes if the number or the reference text are to be displayed
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index 36e1e846b5d7..306f15e23114 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -682,7 +682,7 @@ void SwDoc::UpdateSection( size_t const nPos, SwSectionData & rNewData,
::sw::UndoGuard const undoGuard(GetIDocumentUndoRedo());
// The LinkFileName could only consist of separators
- OUString sCompareString = OUStringLiteral1<sfx2::cTokenSeparator>() + OUStringLiteral1<sfx2::cTokenSeparator>();
+ OUString sCompareString = OUStringLiteral1(sfx2::cTokenSeparator) + OUStringLiteral1(sfx2::cTokenSeparator);
const bool bUpdate =
(!pSection->IsLinkType() && rNewData.IsLinkType())
|| (!rNewData.GetLinkFileName().isEmpty()
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 34e1ef2d93c0..5aa3b5c3c49d 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -562,8 +562,8 @@ OUString SwSection::GetLinkFileName() const
sfx2::LinkManager::GetDisplayNames(
m_RefLink, nullptr, &sTmp, &sRange, &sFilter ))
{
- sTmp += OUStringLiteral1<sfx2::cTokenSeparator>() + sFilter
- + OUStringLiteral1<sfx2::cTokenSeparator>() + sRange;
+ sTmp += OUStringLiteral1(sfx2::cTokenSeparator) + sFilter
+ + OUStringLiteral1(sfx2::cTokenSeparator) + sRange;
}
else if( GetFormat() && !GetFormat()->GetSectionNode() )
{
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index 0cf4b47652c9..61a87aa71012 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -764,12 +764,12 @@ sal_uInt16 SwAutoFormat::GetDigitLevel( const SwTextNode& rNd, sal_Int32& rPos,
}
if( pNumTypes )
- *pNumTypes += OUStringLiteral1<'0' + SVX_NUM_ARABIC>();
+ *pNumTypes += OUStringLiteral1('0' + SVX_NUM_ARABIC);
eScan = eScan | CHG;
}
else if( pNumTypes && !(eScan & DIGIT) )
- *pNumTypes += OUStringLiteral1<'0' + SVX_NUM_ARABIC>();
+ *pNumTypes += OUStringLiteral1('0' + SVX_NUM_ARABIC);
eScan &= ~DELIM; // remove Delim
if( 0 != (eScan & ~CHG) && DIGIT != (eScan & ~CHG))
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index 83cc9dfd9793..7fa98e0be980 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -673,7 +673,7 @@ void SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr )
OUString sText( pTextNd->GetExpandText( rAttr.GetStart(),
*rAttr.GetEnd() - rAttr.GetStart() ) );
- sText = sText.replaceAll(OUStringLiteral1<0x0a>(), "");
+ sText = sText.replaceAll(OUStringLiteral1(0x0a), "");
sText = comphelper::string::strip(sText, ' ');
if( !sText.isEmpty() )
diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx
index 6928e48494ad..4d0c46eb6e83 100644
--- a/sw/source/core/edit/edlingu.cxx
+++ b/sw/source/core/edit/edlingu.cxx
@@ -861,8 +861,8 @@ uno::Reference< XSpellAlternatives >
if( pWrong->InWrongWord(nBegin,nLen) && !pNode->IsSymbol(nBegin) )
{
const OUString aText(pNode->GetText().copy(nBegin, nLen));
- OUString aWord = aText.replaceAll(OUStringLiteral1<CH_TXTATR_BREAKWORD>(), "")
- .replaceAll(OUStringLiteral1<CH_TXTATR_INWORD>(), "");
+ OUString aWord = aText.replaceAll(OUStringLiteral1(CH_TXTATR_BREAKWORD), "")
+ .replaceAll(OUStringLiteral1(CH_TXTATR_INWORD), "");
uno::Reference< XSpellChecker1 > xSpell( ::GetSpellChecker() );
if( xSpell.is() )
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index bbb33f9f611b..959b87109e04 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -352,7 +352,7 @@ void SwTableFormula::MakeFormula_( const SwTable& rTable, OUString& rNewStr,
if ( pTableBox->getRowSpan() >= 1 )
{
if( bDelim )
- rNewStr += OUStringLiteral1<cListDelim>();
+ rNewStr += OUStringLiteral1(cListDelim);
bDelim = true;
rNewStr += pCalcPara->rCalc.GetStrResult(
pTableBox->GetValue( *pCalcPara ), false );
@@ -858,12 +858,12 @@ static OUString lcl_BoxNmToRel( const SwTable& rTable, const SwTableNode& rTable
const OUString sCpy = sTmp; //JP 01.11.95: add rest from box name
- sTmp = OUStringLiteral1<cRelIdentifier>() + OUString::number( nBox )
- + OUStringLiteral1<cRelSeparator>() + OUString::number( nLine );
+ sTmp = OUStringLiteral1(cRelIdentifier) + OUString::number( nBox )
+ + OUStringLiteral1(cRelSeparator) + OUString::number( nLine );
if (!sCpy.isEmpty())
{
- sTmp += OUStringLiteral1<cRelSeparator>() + sCpy;
+ sTmp += OUStringLiteral1(cRelSeparator) + sCpy;
}
}
diff --git a/sw/source/core/fields/dbfld.cxx b/sw/source/core/fields/dbfld.cxx
index 35352daad596..85db205c400c 100644
--- a/sw/source/core/fields/dbfld.cxx
+++ b/sw/source/core/fields/dbfld.cxx
@@ -47,7 +47,7 @@ using namespace ::com::sun::star;
/// replace database separator by dots for display
static OUString lcl_DBTrennConv(const OUString& aContent)
{
- return aContent.replaceAll(OUStringLiteral1<DB_DELIM>(), ".");
+ return aContent.replaceAll(OUStringLiteral1(DB_DELIM), ".");
}
// database field type
@@ -62,9 +62,9 @@ SwDBFieldType::SwDBFieldType(SwDoc* pDocPtr, const OUString& rNam, const SwDBDat
if(!aDBData.sDataSource.isEmpty() || !aDBData.sCommand.isEmpty())
{
sName = aDBData.sDataSource
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ aDBData.sCommand
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ sName;
}
}
@@ -237,9 +237,9 @@ OUString SwDBField::GetFieldName() const
if (sContent.getLength() > 1)
{
- sContent += OUStringLiteral1<DB_DELIM>()
+ sContent += OUStringLiteral1(DB_DELIM)
+ rDBName.getToken(1, DB_DELIM)
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ rDBName.getToken(2, DB_DELIM);
}
return lcl_DBTrennConv(sContent);
@@ -477,7 +477,7 @@ OUString SwDBNameInfField::GetFieldName() const
{
sStr += ":"
+ aDBData.sDataSource
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ aDBData.sCommand;
}
return lcl_DBTrennConv(sStr);
diff --git a/sw/source/core/fields/ddefld.cxx b/sw/source/core/fields/ddefld.cxx
index 0e1f08a0f500..69493290342d 100644
--- a/sw/source/core/fields/ddefld.cxx
+++ b/sw/source/core/fields/ddefld.cxx
@@ -367,7 +367,7 @@ bool SwDDEFieldType::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
rVal >>= sToken;
}
sNewCmd += (i < 2)
- ? sToken + OUStringLiteral1<sfx2::cTokenSeparator>() : sToken;
+ ? sToken + OUStringLiteral1(sfx2::cTokenSeparator) : sToken;
}
SetCmd( sNewCmd );
}
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index 2e4d8f333f89..ba7ff9318505 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -1548,7 +1548,7 @@ OUString SwHiddenTextField::GetDBName(const OUString& rName, SwDoc *pDoc)
}
SwDBData aData = pDoc->GetDBData();
- return aData.sDataSource + OUStringLiteral1<DB_DELIM>() + aData.sCommand;
+ return aData.sDataSource + OUStringLiteral1(DB_DELIM) + aData.sCommand;
}
// field type for line height 0
diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx
index f91382656ce5..bd1d359e3658 100644
--- a/sw/source/core/fields/reffld.cxx
+++ b/sw/source/core/fields/reffld.cxx
@@ -398,7 +398,7 @@ void SwGetRefField::UpdateField( const SwTextField* pFieldTextAttr )
// remove all special characters (replace them with blanks)
if( !sText.isEmpty() )
{
- sText = sText.replaceAll(OUStringLiteral1<0xad>(), "");
+ sText = sText.replaceAll(OUStringLiteral1(0xad), "");
OUStringBuffer aBuf(sText);
const sal_Int32 l = aBuf.getLength();
for (sal_Int32 i=0; i<l; ++i)
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx
index 08de9c18ed86..3d722f3d0ad5 100644
--- a/sw/source/core/frmedt/fetab.cxx
+++ b/sw/source/core/frmedt/fetab.cxx
@@ -2321,7 +2321,7 @@ bool SwFEShell::GetAutoSum( OUString& rFormula ) const
GetTabBox()->GetFrameFormat()->GetTableBoxFormula(), aCells ))
break;
else if( USHRT_MAX != nBoxW )
- sFields = OUStringLiteral1<cListDelim>() + sFields;
+ sFields = OUStringLiteral1(cListDelim) + sFields;
else
break;
}
@@ -2346,7 +2346,7 @@ bool SwFEShell::GetAutoSum( OUString& rFormula ) const
}
}
else
- sFields = OUStringLiteral1<cListDelim>() + sFields;
+ sFields = OUStringLiteral1(cListDelim) + sFields;
}
else if( USHRT_MAX == nBoxW )
break;
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 7659ef06de30..9614e039fbf0 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -641,8 +641,8 @@ bool SwGrfNode::GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm ) const
if( sfx2::LinkManager::GetDisplayNames(
refLink, &sApp, &sTopic, &sItem ) )
{
- *pFileNm = sApp + OUStringLiteral1<sfx2::cTokenSeparator>()
- + sTopic + OUStringLiteral1<sfx2::cTokenSeparator>()
+ *pFileNm = sApp + OUStringLiteral1(sfx2::cTokenSeparator)
+ + sTopic + OUStringLiteral1(sfx2::cTokenSeparator)
+ sItem;
*pFilterNm = "DDE";
bRet = true;
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index 70f58388125f..83d42b8074da 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -620,9 +620,9 @@ OUString SwFormToken::GetString() const
+ OUString::number( nOutlineLevel );
break;
case TOKEN_TEXT:
- sData += OUStringLiteral1<TOX_STYLE_DELIMITER>()
- + sText.replaceAll(OUStringLiteral1<TOX_STYLE_DELIMITER>(), "")
- + OUStringLiteral1<TOX_STYLE_DELIMITER>();
+ sData += OUStringLiteral1(TOX_STYLE_DELIMITER)
+ + sText.replaceAll(OUStringLiteral1(TOX_STYLE_DELIMITER), "")
+ + OUStringLiteral1(TOX_STYLE_DELIMITER);
break;
case TOKEN_AUTHORITY:
if (nAuthorityField<10)
diff --git a/sw/source/core/tox/txmsrt.cxx b/sw/source/core/tox/txmsrt.cxx
index 955fd898e6fc..65393a506fa6 100644
--- a/sw/source/core/tox/txmsrt.cxx
+++ b/sw/source/core/tox/txmsrt.cxx
@@ -587,7 +587,7 @@ OUString SwTOXPara::GetURL() const
SwFrameFormat* pFly = pNd->GetFlyFormat();
if( pFly )
{
- aText = "#" + pFly->GetName() + OUStringLiteral1<cMarkSeparator>();
+ aText = "#" + pFly->GetName() + OUStringLiteral1(cMarkSeparator);
const sal_Char* pStr;
switch( eType )
{
@@ -603,7 +603,7 @@ OUString SwTOXPara::GetURL() const
break;
case nsSwTOXElement::TOX_SEQUENCE:
{
- aText = "#" + m_sSequenceName + OUStringLiteral1<cMarkSeparator>()
+ aText = "#" + m_sSequenceName + OUStringLiteral1(cMarkSeparator)
+ "sequence";
}
break;
@@ -655,7 +655,7 @@ OUString SwTOXTable::GetURL() const
if ( sName.isEmpty() )
return OUString();
- return "#" + sName + OUStringLiteral1<cMarkSeparator>() + "table";
+ return "#" + sName + OUStringLiteral1(cMarkSeparator) + "table";
}
SwTOXAuthority::SwTOXAuthority( const SwContentNode& rNd,
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index f4094c574a44..b53efe506090 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -1508,8 +1508,8 @@ bool SwTextNode::InsertHint( SwTextAttr * const pAttr, const SetAttrMode nMode )
if( !(SetAttrMode::NOTXTATRCHR & nMode) )
{
SwIndex aIdx( this, pAttr->GetStart() );
- const OUString aContent = OUStringLiteral1<CH_TXT_ATR_INPUTFIELDSTART>()
- + pTextInputField->GetFieldContent() + OUStringLiteral1<CH_TXT_ATR_INPUTFIELDEND>();
+ const OUString aContent = OUStringLiteral1(CH_TXT_ATR_INPUTFIELDSTART)
+ + pTextInputField->GetFieldContent() + OUStringLiteral1(CH_TXT_ATR_INPUTFIELDEND);
InsertText( aContent, aIdx, nInsertFlags );
sal_Int32* const pEnd(pAttr->GetEnd());
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index dcd1a2831552..75e0a1fb6907 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -749,8 +749,8 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
if (m_pImpl->m_sParam1.isEmpty())
{
m_pImpl->m_sParam1
- = OUStringLiteral1<sfx2::cTokenSeparator>()
- + OUStringLiteral1<sfx2::cTokenSeparator>();
+ = OUStringLiteral1(sfx2::cTokenSeparator)
+ + OUStringLiteral1(sfx2::cTokenSeparator);
}
OUString sTmp;
rValue >>= sTmp;
@@ -2781,7 +2781,7 @@ bool SwXTextFieldMasters::getInstanceName(
break;
case RES_DBFLD:
- sField = "DataBase." + rFieldType.GetName().replaceAll(OUStringLiteral1<DB_DELIM>(), ".");
+ sField = "DataBase." + rFieldType.GetName().replaceAll(OUStringLiteral1(DB_DELIM), ".");
break;
case RES_AUTHORITY:
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 20e8bd602a2c..5597721c4d33 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -2690,7 +2690,7 @@ throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException,
{
if(i)
{
- sSetStyles += OUStringLiteral1<TOX_STYLE_DELIMITER>();
+ sSetStyles += OUStringLiteral1(TOX_STYLE_DELIMITER);
}
SwStyleNameMapper::FillUIName(pStyles[i], aString,
nsSwGetPoolIdFromName::GET_POOLID_TXTCOLL, true);
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 8482e2690934..64ffaebf29ee 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -340,9 +340,9 @@ throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
SwSectionData aSect(eType, pDoc->GetUniqueSectionName(&m_pImpl->m_sName));
aSect.SetCondition(m_pImpl->m_pProps->m_sCondition);
aSect.SetLinkFileName(m_pImpl->m_pProps->m_sLinkFileName +
- OUStringLiteral1<sfx2::cTokenSeparator>() +
+ OUStringLiteral1(sfx2::cTokenSeparator) +
m_pImpl->m_pProps->m_sSectionFilter +
- OUStringLiteral1<sfx2::cTokenSeparator>() +
+ OUStringLiteral1(sfx2::cTokenSeparator) +
m_pImpl->m_pProps->m_sSectionRegion);
aSect.SetHidden(m_pImpl->m_pProps->m_bHidden);
@@ -616,7 +616,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
if (!m_pProps->m_bDDE)
{
m_pProps->m_sLinkFileName =
- OUStringLiteral1<sfx2::cTokenSeparator>() + OUStringLiteral1<sfx2::cTokenSeparator>();
+ OUStringLiteral1(sfx2::cTokenSeparator) + OUStringLiteral1(sfx2::cTokenSeparator);
m_pProps->m_bDDE = true;
}
m_pProps->m_sLinkFileName = comphelper::string::setToken(
@@ -628,7 +628,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
OUString sLinkFileName(pSectionData->GetLinkFileName());
if (pSectionData->GetType() != DDE_LINK_SECTION)
{
- sLinkFileName = OUStringLiteral1<sfx2::cTokenSeparator>() + OUStringLiteral1<sfx2::cTokenSeparator>();
+ sLinkFileName = OUStringLiteral1(sfx2::cTokenSeparator) + OUStringLiteral1(sfx2::cTokenSeparator);
pSectionData->SetType(DDE_LINK_SECTION);
}
sLinkFileName = comphelper::string::setToken(sLinkFileName,
@@ -682,8 +682,8 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
aLink.FileURL, URIHelper::GetMaybeFileHdl())
: OUString());
const OUString sFileName(
- sTmp + OUStringLiteral1<sfx2::cTokenSeparator>() +
- aLink.FilterName + OUStringLiteral1<sfx2::cTokenSeparator>() +
+ sTmp + OUStringLiteral1(sfx2::cTokenSeparator) +
+ aLink.FilterName + OUStringLiteral1(sfx2::cTokenSeparator) +
pSectionData->GetLinkFileName().getToken(2, sfx2::cTokenSeparator));
pSectionData->SetLinkFileName(sFileName);
if (sFileName.getLength() < 3)
@@ -713,7 +713,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
for (sal_Int32 i = comphelper::string::getTokenCount(sSectLink, sfx2::cTokenSeparator);
i < 3; ++i)
{
- sSectLink += OUStringLiteral1<sfx2::cTokenSeparator>();
+ sSectLink += OUStringLiteral1(sfx2::cTokenSeparator);
}
sSectLink = comphelper::string::setToken(sSectLink, 2, sfx2::cTokenSeparator, sLink);
pSectionData->SetLinkFileName(sSectLink);
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx
index b4554fe39b1f..4c0037a992c7 100644
--- a/sw/source/filter/ascii/ascatr.cxx
+++ b/sw/source/filter/ascii/ascatr.cxx
@@ -204,7 +204,7 @@ static Writer& OutASC_SwTextNode( Writer& rWrt, SwContentNode& rNode )
{
OUString aOutStr( aStr.copy( nStrPos, nNextAttr - nStrPos ) );
if ( !bExportSoftHyphens )
- aOutStr = aOutStr.replaceAll(OUStringLiteral1<CHAR_SOFTHYPHEN>(), "");
+ aOutStr = aOutStr.replaceAll(OUStringLiteral1(CHAR_SOFTHYPHEN), "");
rWrt.Strm().WriteUnicodeOrByteText( aOutStr );
}
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx
index bfd284f2e27b..c8899324b606 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -288,7 +288,7 @@ void SwHTMLParser::NewDivision( int nToken )
else
{
aURL = URIHelper::SmartRel2Abs(INetURLObject( m_sBaseURL ), aHRef.copy( 0, nPos ), Link<OUString *, bool>(), false )
- + OUStringLiteral1<sfx2::cTokenSeparator>();
+ + OUStringLiteral1(sfx2::cTokenSeparator);
if( nPos2 == -1 )
{
aURL += aHRef.copy( nPos+1 );
@@ -296,7 +296,7 @@ void SwHTMLParser::NewDivision( int nToken )
else
{
aURL += aHRef.copy( nPos+1, nPos2 - (nPos+1) )
- + OUStringLiteral1<sfx2::cTokenSeparator>()
+ + OUStringLiteral1(sfx2::cTokenSeparator)
+ rtl::Uri::decode( aHRef.copy( nPos2+1 ),
rtl_UriDecodeWithCharset,
RTL_TEXTENCODING_ISO_8859_1 );
diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx
index b85cb22125dd..741dd6fe80a7 100644
--- a/sw/source/filter/html/wrthtml.cxx
+++ b/sw/source/filter/html/wrthtml.cxx
@@ -1177,7 +1177,7 @@ void SwHTMLWriter::OutImplicitMark( const OUString& rMark,
{
if( !rMark.isEmpty() && !m_aImplicitMarks.empty() )
{
- OUString sMark(rMark + OUStringLiteral1<cMarkSeparator>() + OUString::createFromAscii(pMarkType));
+ OUString sMark(rMark + OUStringLiteral1(cMarkSeparator) + OUString::createFromAscii(pMarkType));
if( 0 != m_aImplicitMarks.erase( sMark ) )
{
OutAnchor(sMark.replace('?', '_')); // '?' causes problems in IE/Netscape 5
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 630f82e444da..2f77017756ee 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -6091,7 +6091,7 @@ void DocxAttributeOutput::NumberingLevel( sal_uInt8 nLevel,
aBuffer.append( pPrev, pIt - pPrev );
// If bullet char is empty, set lvlText as empty
- if ( rNumberingString == OUStringLiteral1<0>() && nNumberingType == SVX_NUM_CHAR_SPECIAL )
+ if ( rNumberingString == OUStringLiteral1(0) && nNumberingType == SVX_NUM_CHAR_SPECIAL )
{
m_pSerializer->singleElementNS( XML_w, XML_lvlText, FSNS( XML_w, XML_val ), "", FSEND );
}
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 79123eaded79..106c6c5a930b 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -2537,7 +2537,7 @@ void AttributeOutputBase::TextField( const SwFormatField& rField )
SwDBData aData = GetExport().m_pDoc->GetDBData();
const OUString sStr = FieldString(ww::eDATABASE)
+ aData.sDataSource
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ aData.sCommand;
GetExport().OutputField(pField, ww::eDATABASE, sStr);
}
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index cbb0708d6486..aef81a911178 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -2427,8 +2427,8 @@ eF_ResT SwWW8ImplReader::Read_F_IncludeText( WW8FieldDesc* /*pF*/, OUString& rSt
{
// Bereich aus Quelle ( kein Switch ) ?
ConvertUFName(aBook);
- aPara += OUStringLiteral1<sfx2::cTokenSeparator>()
- + OUStringLiteral1<sfx2::cTokenSeparator>() + aBook;
+ aPara += OUStringLiteral1(sfx2::cTokenSeparator)
+ + OUStringLiteral1(sfx2::cTokenSeparator) + aBook;
}
/*
@@ -2824,7 +2824,7 @@ static void lcl_toxMatchTSwitch(SwWW8ImplReader& rReader, SwTOXBase& rBase,
OUString sStyles( rBase.GetStyleNames( nLevel ) );
if( !sStyles.isEmpty() )
- sStyles += OUStringLiteral1<TOX_STYLE_DELIMITER>();
+ sStyles += OUStringLiteral1(TOX_STYLE_DELIMITER);
sStyles += sTemplate;
rBase.SetStyleNames( sStyles, nLevel );
}
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 22c677b630dd..b8c85f312466 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -1173,9 +1173,9 @@ static SwDDEFieldType* lcl_GetDDEFieldType(SwXMLDDETableContext_Impl* pContext,
{
// make command string
const OUString sCommand(pContext->GetDDEApplication()
- + OUStringLiteral1<sfx2::cTokenSeparator>()
+ + OUStringLiteral1(sfx2::cTokenSeparator)
+ pContext->GetDDEItem()
- + OUStringLiteral1<sfx2::cTokenSeparator>()
+ + OUStringLiteral1(sfx2::cTokenSeparator)
+ pContext->GetDDETopic());
const SfxLinkUpdateMode nType = pContext->GetIsAutomaticUpdate()
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index cea9bd2aef4d..1aa7803b6ad1 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -599,7 +599,7 @@ IMPL_LINK_TYPED( SwInsertDBColAutoPilot, TableToFromHdl, Button*, pButton, void
// first delete the existing selection
aStr = aStr.replaceAt( nPos, nSel, "" );
- aField = OUStringLiteral1<cDBFieldStart>() + aField + OUStringLiteral1<cDBFieldEnd>();
+ aField = OUStringLiteral1(cDBFieldStart) + aField + OUStringLiteral1(cDBFieldEnd);
if( !aStr.isEmpty() )
{
if( nPos ) // one blank in front
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx
index 79af0846c5a5..9745e49e2270 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -318,10 +318,10 @@ SwFrameFormat* SwMailMergeLayoutPage::InsertAddressFrame(
SwFieldMgr aFieldMgr(&rShell);
//create a database string source.command.commandtype.column
const SwDBData& rData = rConfigItem.GetCurrentDBData();
- OUString sDBName(rData.sDataSource + OUStringLiteral1<DB_DELIM>()
- + rData.sCommand + OUStringLiteral1<DB_DELIM>());
+ OUString sDBName(rData.sDataSource + OUStringLiteral1(DB_DELIM)
+ + rData.sCommand + OUStringLiteral1(DB_DELIM));
const OUString sDatabaseConditionPrefix(sDBName.replace(DB_DELIM, '.'));
- sDBName += OUString::number(rData.nCommandType) + OUStringLiteral1<DB_DELIM>();
+ sDBName += OUString::number(rData.nCommandType) + OUStringLiteral1(DB_DELIM);
// if only the country is in an address line the
// paragraph has to be hidden depending on the
@@ -510,9 +510,9 @@ void SwMailMergeLayoutPage::InsertGreeting(SwWrtShell& rShell, SwMailMergeConfig
const OUString sConditionBase("[" + sCommonBase + sGenderColumn + "]");
const OUString sNameColumnBase("[" + sCommonBase + sNameColumn + "]");
- const OUString sDBName(rData.sDataSource + OUStringLiteral1<DB_DELIM>()
- + rData.sCommand + OUStringLiteral1<DB_DELIM>()
- + OUString::number(rData.nCommandType) + OUStringLiteral1<DB_DELIM>());
+ const OUString sDBName(rData.sDataSource + OUStringLiteral1(DB_DELIM)
+ + rData.sCommand + OUStringLiteral1(DB_DELIM)
+ + OUString::number(rData.nCommandType) + OUStringLiteral1(DB_DELIM));
// Female: [database.sGenderColumn] != "rFemaleGenderValue" && [database.NameColumn]
// Male: [database.sGenderColumn] == "rFemaleGenderValue" && [database.rGenderColumn]
diff --git a/sw/source/ui/dialog/ascfldlg.cxx b/sw/source/ui/dialog/ascfldlg.cxx
index 2e39a69b396c..12b9f8c6da5f 100644
--- a/sw/source/ui/dialog/ascfldlg.cxx
+++ b/sw/source/ui/dialog/ascfldlg.cxx
@@ -292,7 +292,7 @@ void SwAsciiFilterDlg::FillOptions( SwAsciiOptions& rOptions )
if( -1 != nEnd )
GetExtraData() = GetExtraData().replaceAt( nStt, nEnd - nStt + 1, "" );
}
- GetExtraData() += sFindNm + sData + OUStringLiteral1<cDialogExtraDataClose>();
+ GetExtraData() += sFindNm + sData + OUStringLiteral1(cDialogExtraDataClose);
}
}
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index e5332fa0fbbb..c15dd03c815b 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -210,11 +210,11 @@ void SectRepr::SetFile( const OUString& rFile )
if( !rFile.isEmpty() || !sSub.isEmpty() )
{
- sNewFile += OUStringLiteral1<sfx2::cTokenSeparator>();
+ sNewFile += OUStringLiteral1(sfx2::cTokenSeparator);
if( !rFile.isEmpty() ) // Filter only with FileName
sNewFile += sOldFileName.getToken( 1, sfx2::cTokenSeparator );
- sNewFile += OUStringLiteral1<sfx2::cTokenSeparator>() + sSub;
+ sNewFile += OUStringLiteral1(sfx2::cTokenSeparator) + sSub;
}
m_SectionData.SetLinkFileName( sNewFile );
@@ -237,10 +237,10 @@ void SectRepr::SetFilter( const OUString& rFilter )
const OUString sSub( sOldFileName.getToken( 2, sfx2::cTokenSeparator ) );
if( !sFile.isEmpty() )
- sNewFile = sFile + OUStringLiteral1<sfx2::cTokenSeparator>() +
- rFilter + OUStringLiteral1<sfx2::cTokenSeparator>() + sSub;
+ sNewFile = sFile + OUStringLiteral1(sfx2::cTokenSeparator) +
+ rFilter + OUStringLiteral1(sfx2::cTokenSeparator) + sSub;
else if( !sSub.isEmpty() )
- sNewFile = OUStringLiteral1<sfx2::cTokenSeparator>() + OUStringLiteral1<sfx2::cTokenSeparator>() + sSub;
+ sNewFile = OUStringLiteral1(sfx2::cTokenSeparator) + OUStringLiteral1(sfx2::cTokenSeparator) + sSub;
m_SectionData.SetLinkFileName( sNewFile );
@@ -259,8 +259,8 @@ void SectRepr::SetSubRegion(const OUString& rSubRegion)
const OUString sFilter( sLinkFileName.getToken( 0, sfx2::cTokenSeparator, n ) );
if( !rSubRegion.isEmpty() || !sOldFileName.isEmpty() )
- sNewFile = sOldFileName + OUStringLiteral1<sfx2::cTokenSeparator>() +
- sFilter + OUStringLiteral1<sfx2::cTokenSeparator>() + rSubRegion;
+ sNewFile = sOldFileName + OUStringLiteral1(sfx2::cTokenSeparator) +
+ sFilter + OUStringLiteral1(sfx2::cTokenSeparator) + rSubRegion;
m_SectionData.SetLinkFileName( sNewFile );
@@ -285,8 +285,8 @@ OUString SectRepr::GetFile() const
if (DDE_LINK_SECTION == m_SectionData.GetType())
{
sal_Int32 n = 0;
- return sLinkFile.replaceFirst( OUStringLiteral1<sfx2::cTokenSeparator>(), " ", &n )
- .replaceFirst( OUStringLiteral1<sfx2::cTokenSeparator>(), " ", &n );
+ return sLinkFile.replaceFirst( OUStringLiteral1(sfx2::cTokenSeparator), " ", &n )
+ .replaceFirst( OUStringLiteral1(sfx2::cTokenSeparator), " ", &n );
}
return INetURLObject::decode( sLinkFile.getToken( 0, sfx2::cTokenSeparator ),
INetURLObject::DECODE_UNAMBIGUOUS );
@@ -1144,10 +1144,10 @@ IMPL_LINK_TYPED( SwEditRegionDlg, FileNameHdl, Edit&, rEdit, void )
{
OUString sLink( SwSectionData::CollapseWhiteSpaces(rEdit.GetText()) );
sal_Int32 nPos = 0;
- sLink = sLink.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nPos );
+ sLink = sLink.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nPos );
if (nPos>=0)
{
- sLink = sLink.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nPos );
+ sLink = sLink.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nPos );
}
pSectRepr->GetSectionData().SetLinkFileName( sLink );
@@ -1619,10 +1619,10 @@ bool SwInsertSectionTabPage::FillItemSet( SfxItemSet* )
{
aLinkFile = SwSectionData::CollapseWhiteSpaces(sFileName);
sal_Int32 nPos = 0;
- aLinkFile = aLinkFile.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nPos );
+ aLinkFile = aLinkFile.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nPos );
if (nPos>=0)
{
- aLinkFile = aLinkFile.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nPos );
+ aLinkFile = aLinkFile.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nPos );
}
}
else
@@ -1638,8 +1638,8 @@ bool SwInsertSectionTabPage::FillItemSet( SfxItemSet* )
aSection.SetLinkFilePassword( m_sFilePasswd );
}
- aLinkFile += OUStringLiteral1<sfx2::cTokenSeparator>() + m_sFilterName
- + OUStringLiteral1<sfx2::cTokenSeparator>() + sSubRegion;
+ aLinkFile += OUStringLiteral1(sfx2::cTokenSeparator) + m_sFilterName
+ + OUStringLiteral1(sfx2::cTokenSeparator) + sSubRegion;
}
aSection.SetLinkFileName(aLinkFile);
diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx
index 1c9d34d38007..0188619ef4a4 100644
--- a/sw/source/ui/envelp/envlop1.cxx
+++ b/sw/source/ui/envelp/envlop1.cxx
@@ -226,7 +226,7 @@ SwEnvPage::SwEnvPage(vcl::Window* pParent, const SfxItemSet& rSet)
m_pPreview->SetBorderStyle( WindowBorderStyle::MONO );
SwDBData aData = pSh->GetDBData();
- sActDBName = aData.sDataSource + OUStringLiteral1<DB_DELIM>() + aData.sCommand;
+ sActDBName = aData.sDataSource + OUStringLiteral1(DB_DELIM) + aData.sCommand;
InitDatabaseBox();
}
@@ -256,7 +256,7 @@ IMPL_LINK_TYPED( SwEnvPage, DatabaseHdl, ListBox&, rListBox, void )
{
sActDBName = rListBox.GetSelectEntry();
pSh->GetDBManager()->GetTableNames(m_pTableLB, sActDBName);
- sActDBName += OUStringLiteral1<DB_DELIM>();
+ sActDBName += OUStringLiteral1(DB_DELIM);
}
else
{
diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
index 32a69db38ebd..bdcbad03dc0b 100644
--- a/sw/source/ui/fldui/changedb.cxx
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -192,7 +192,7 @@ void SwChangeDBDlg::UpdateFields()
if( m_pUsedDBTLB->GetParent( pEntry ))
{
OUString sTmp(m_pUsedDBTLB->GetEntryText( m_pUsedDBTLB->GetParent( pEntry )) +
- OUStringLiteral1<DB_DELIM>() + m_pUsedDBTLB->GetEntryText( pEntry ) + OUStringLiteral1<DB_DELIM>() +
+ OUStringLiteral1(DB_DELIM) + m_pUsedDBTLB->GetEntryText( pEntry ) + OUStringLiteral1(DB_DELIM) +
OUString::number((int)reinterpret_cast<sal_uLong>(pEntry->GetUserData())));
aDBNames.push_back(sTmp);
}
@@ -205,9 +205,9 @@ void SwChangeDBDlg::UpdateFields()
sal_Bool bIsTable = false;
const OUString DBName(m_pAvailDBTLB->GetDBName(sTableName, sColumnName, &bIsTable));
const OUString sTemp = DBName
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ sTableName
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ OUString::number(bIsTable
? CommandType::TABLE
: CommandType::QUERY);
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
index cdd2cd71f839..a64ec9a60cec 100644
--- a/sw/source/ui/fldui/flddb.cxx
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -219,14 +219,14 @@ bool SwFieldDBPage::FillItemSet(SfxItemSet* )
sal_uInt16 nSubType = 0;
OUString sDBName = aData.sDataSource
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ aData.sCommand
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM)
+ OUString::number(aData.nCommandType)
- + OUStringLiteral1<DB_DELIM>();
+ + OUStringLiteral1(DB_DELIM);
if (!sColumnName.isEmpty())
{
- sDBName += sColumnName + OUStringLiteral1<DB_DELIM>();
+ sDBName += sColumnName + OUStringLiteral1(DB_DELIM);
}
OUString aName = sDBName + m_pConditionED->GetText();
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx
index 5e9713324f39..b5c79b24ea21 100644
--- a/sw/source/ui/fldui/fldfunc.cxx
+++ b/sw/source/ui/fldui/fldfunc.cxx
@@ -575,7 +575,7 @@ bool SwFieldFuncPage::FillItemSet(SfxItemSet* )
for(sal_Int32 i = 0; i < m_pListItemsLB->GetEntryCount(); i++)
{
if(i)
- aVal += OUStringLiteral1<DB_DELIM>();
+ aVal += OUStringLiteral1(DB_DELIM);
aVal += m_pListItemsLB->GetEntry(i);
}
}
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index 2fa1dad31833..98e073e045b4 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -473,8 +473,8 @@ void SwFieldVarPage::SubTypeHdl(ListBox* pBox)
// That's not considered here yet
OUString sCmd( pType->GetCmd() );
sal_Int32 nTmpPos = 0;
- sCmd = sCmd.replaceFirst( OUStringLiteral1<sfx2::cTokenSeparator>(), " ", &nTmpPos );
- sCmd = sCmd.replaceFirst( OUStringLiteral1<sfx2::cTokenSeparator>(), " ", &nTmpPos );
+ sCmd = sCmd.replaceFirst( OUStringLiteral1(sfx2::cTokenSeparator), " ", &nTmpPos );
+ sCmd = sCmd.replaceFirst( OUStringLiteral1(sfx2::cTokenSeparator), " ", &nTmpPos );
m_pValueED->SetText( sCmd );
m_pFormatLB->SelectEntryPos(static_cast<int>(pType->GetType()));
@@ -1040,8 +1040,8 @@ IMPL_LINK_TYPED( SwFieldVarPage, TBClickHdl, ToolBox *, pBox, void )
// DDE-Topics/-Items can have blanks in their names!
// That's not being considered here yet.
sal_Int32 nTmpPos = 0;
- sValue = sValue.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nTmpPos );
- sValue = sValue.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nTmpPos );
+ sValue = sValue.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nTmpPos );
+ sValue = sValue.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nTmpPos );
static_cast<SwDDEFieldType*>(pType)->SetCmd(sValue);
static_cast<SwDDEFieldType*>(pType)->SetType(static_cast<SfxLinkUpdateMode>(nFormat));
}
@@ -1079,8 +1079,8 @@ IMPL_LINK_TYPED( SwFieldVarPage, TBClickHdl, ToolBox *, pBox, void )
// DDE-Topics/-Items can have blanks in their names!
// That's not being considered here yet.
sal_Int32 nTmpPos = 0;
- sValue = sValue.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nTmpPos );
- sValue = sValue.replaceFirst( " ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nTmpPos );
+ sValue = sValue.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nTmpPos );
+ sValue = sValue.replaceFirst( " ", OUStringLiteral1(sfx2::cTokenSeparator), &nTmpPos );
SwDDEFieldType aType(sName, sValue, static_cast<SfxLinkUpdateMode>(nFormat));
m_pSelectionLB->InsertEntry(sName);
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 6049e5d86767..9e0b2ccdc3ff 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -743,7 +743,7 @@ IMPL_LINK_NOARG_TYPED(SwAddStylesDlg_Impl, OkHdl, Button*, void)
if(nLevel != USHRT_MAX)
{
if(!pStyleArr[nLevel].isEmpty())
- pStyleArr[nLevel] += OUStringLiteral1<TOX_STYLE_DELIMITER>();
+ pStyleArr[nLevel] += OUStringLiteral1(TOX_STYLE_DELIMITER);
pStyleArr[nLevel] += SvTabListBox::GetEntryText(pEntry, 0);
}
pEntry = m_pHeaderTree->Next(pEntry);
@@ -3670,9 +3670,9 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
OUString aStr( SW_RES( STR_TITLE ));
if( !m_pCurrentForm->GetTemplate( 0 ).isEmpty() )
{
- aStr += " " + OUStringLiteral1<aDeliStart>()
+ aStr += " " + OUStringLiteral1(aDeliStart)
+ m_pCurrentForm->GetTemplate( 0 )
- + OUStringLiteral1<aDeliEnd>();
+ + OUStringLiteral1(aDeliEnd);
}
m_pLevelLB->InsertEntry(aStr);
@@ -3690,9 +3690,9 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
}
if( !m_pCurrentForm->GetTemplate( i ).isEmpty() )
{
- aStr += " " + OUStringLiteral1<aDeliStart>()
+ aStr += " " + OUStringLiteral1(aDeliStart)
+ m_pCurrentForm->GetTemplate( i )
- + OUStringLiteral1<aDeliEnd>();
+ + OUStringLiteral1(aDeliEnd);
}
m_pLevelLB->InsertEntry( aStr );
}
@@ -3754,9 +3754,9 @@ IMPL_LINK_NOARG_TYPED(SwTOXStylesTabPage, AssignHdl, Button*, void)
nTemplPos != LISTBOX_ENTRY_NOTFOUND)
{
const OUString aStr(m_pLevelLB->GetEntry(nLevPos).getToken(0, aDeliStart)
- + OUStringLiteral1<aDeliStart>()
+ + OUStringLiteral1(aDeliStart)
+ m_pParaLayLB->GetSelectEntry()
- + OUStringLiteral1<aDeliEnd>());
+ + OUStringLiteral1(aDeliEnd));
m_pCurrentForm->SetTemplate(nLevPos, m_pParaLayLB->GetSelectEntry());
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index 50cf341183e8..361a91044105 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -1237,7 +1237,7 @@ IMPL_LINK_NOARG_TYPED(SwAuthorMarkPane, InsertHdl, Button*, void)
OUString sFields;
for(OUString & s : m_sFields)
{
- sFields += s + OUStringLiteral1<TOX_STYLE_DELIMITER>();
+ sFields += s + OUStringLiteral1(TOX_STYLE_DELIMITER);
}
if(bNewEntry)
{
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index 5aeb4621c853..1a94408163b2 100644
--- a/sw/source/ui/misc/bookmark.cxx
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -192,7 +192,7 @@ IMPL_LINK_NOARG_TYPED(SwInsertBookmarkDlg, RenameHdl, Button*, void)
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
std::unique_ptr<AbstractSwRenameXNamedDlg> pDlg(pFact->CreateSwRenameXNamedDlg(this, xNamed, xNameAccess));
OSL_ENSURE(pDlg, "Dialog creation failed!");
- pDlg->SetForbiddenChars(BookmarkTable::aForbiddenChars + OUStringLiteral1<BookmarkTable::cSeparator>());
+ pDlg->SetForbiddenChars(BookmarkTable::aForbiddenChars + OUStringLiteral1(BookmarkTable::cSeparator));
if (pDlg->Execute())
{
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index 576e8821ecb8..9f7942147a9a 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -210,7 +210,7 @@ IMPL_LINK_NOARG_TYPED( SwGlossaryGroupDlg, SelectHdl, SvTreeListBox*, void )
IMPL_LINK_NOARG_TYPED(SwGlossaryGroupDlg, NewHdl, Button*, void)
{
OUString sGroup = m_pNameED->GetText()
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(m_pPathLB->GetSelectEntryPos());
OSL_ENSURE(!pGlosHdl->FindGroupName(sGroup), "group already available!");
m_InsertedArr.push_back(sGroup);
@@ -283,7 +283,7 @@ IMPL_LINK_NOARG_TYPED(SwGlossaryGroupDlg, RenameHdl, Button*, void)
const OUString sNewTitle(m_pNameED->GetText());
OUString sNewName = sNewTitle
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(m_pPathLB->GetSelectEntryPos());
OSL_ENSURE(!pGlosHdl->FindGroupName(sNewName), "group already available!");
@@ -302,8 +302,8 @@ IMPL_LINK_NOARG_TYPED(SwGlossaryGroupDlg, RenameHdl, Button*, void)
}
if(!bDone)
{
- sEntry += OUStringLiteral1<RENAME_TOKEN_DELIM>() + sNewName
- + OUStringLiteral1<RENAME_TOKEN_DELIM>() + sNewTitle;
+ sEntry += OUStringLiteral1(RENAME_TOKEN_DELIM) + sNewName
+ + OUStringLiteral1(RENAME_TOKEN_DELIM) + sNewTitle;
m_RenamedArr.push_back(sEntry);
}
delete static_cast<GlosBibUserData*>(pEntry->GetUserData());
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index 93fccce83ddc..33de3ebcf575 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -282,7 +282,7 @@ IMPL_LINK_TYPED( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox, void )
SvTreeListEntry* pParent = pBox->GetParent(pEntry) ? pBox->GetParent(pEntry) : pEntry;
GroupUserData* pGroupData = static_cast<GroupUserData*>(pParent->GetUserData());
::SetCurrGlosGroup(pGroupData->sGroupName
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(pGroupData->nPathIdx));
pGlossaryHdl->SetCurGroup(::GetCurrGlosGroup());
// set current text block
@@ -663,7 +663,7 @@ IMPL_LINK_NOARG_TYPED(SwGlossaryDlg, BibHdl, Button*, void)
{
GroupUserData* pGroupData = static_cast<GroupUserData*>(pEntry->GetUserData());
const OUString sGroup = pGroupData->sGroupName
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(pGroupData->nPathIdx);
if(sGroup == sNewGroup)
{
@@ -925,7 +925,7 @@ DragDropMode SwGlTreeListBox::NotifyStartDrag(
GroupUserData* pGroupData = static_cast<GroupUserData*>(pParent->GetUserData());
OUString sEntry = pGroupData->sGroupName
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(pGroupData->nPathIdx);
sal_Int8 nDragOption = DND_ACTION_COPY;
eRet = DragDropMode::CTRL_COPY;
@@ -989,7 +989,7 @@ TriState SwGlTreeListBox::NotifyCopyingOrMoving(
GroupUserData* pGroupData = static_cast<GroupUserData*>(pSrcParent->GetUserData());
OUString sSourceGroup = pGroupData->sGroupName
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(pGroupData->nPathIdx);
pDlg->pGlossaryHdl->SetCurGroup(sSourceGroup);
@@ -998,7 +998,7 @@ TriState SwGlTreeListBox::NotifyCopyingOrMoving(
GroupUserData* pDestData = static_cast<GroupUserData*>(pDestParent->GetUserData());
OUString sDestName = pDestData->sGroupName
- + OUStringLiteral1<GLOS_DELIM>()
+ + OUStringLiteral1(GLOS_DELIM)
+ OUString::number(pDestData->nPathIdx);
const bool bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName,
@@ -1030,7 +1030,7 @@ OUString SwGlossaryDlg::GetCurrGrpName() const
pEntry =
m_pCategoryBox->GetParent(pEntry) ? m_pCategoryBox->GetParent(pEntry) : pEntry;
GroupUserData* pGroupData = static_cast<GroupUserData*>(pEntry->GetUserData());
- return pGroupData->sGroupName + OUStringLiteral1<GLOS_DELIM>() + OUString::number(pGroupData->nPathIdx);
+ return pGroupData->sGroupName + OUStringLiteral1(GLOS_DELIM) + OUString::number(pGroupData->nPathIdx);
}
return OUString();
}
diff --git a/sw/source/ui/vba/vbalisthelper.cxx b/sw/source/ui/vba/vbalisthelper.cxx
index d5c13db775e6..bc74abc5cd48 100644
--- a/sw/source/ui/vba/vbalisthelper.cxx
+++ b/sw/source/ui/vba/vbalisthelper.cxx
@@ -153,7 +153,7 @@ void SwVbaListHelper::CreateBulletListTemplate() throw( css::uno::RuntimeExcepti
}
case 2:
{
- aBulletChar = OUStringLiteral1<CHAR_EMPTY_DOT>();
+ aBulletChar = OUStringLiteral1(CHAR_EMPTY_DOT);
break;
}
case 3:
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 9fd1ce6653a6..8b9206616564 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -528,8 +528,8 @@ bool SwDBManager::Merge( const SwMergeDescriptor& rMergeDesc )
aDBNames.push_back(OUString());
SwDBData aInsertData = pWorkShell->GetDBData();
OUString sDBName = aInsertData.sDataSource
- + OUStringLiteral1<DB_DELIM>() + aInsertData.sCommand
- + OUStringLiteral1<DB_DELIM>()
+ + OUStringLiteral1(DB_DELIM) + aInsertData.sCommand
+ + OUStringLiteral1(DB_DELIM)
+ OUString::number(aInsertData.nCommandType);
pWorkShell->ChangeDBFields( aDBNames, sDBName);
SetInitDBFields(false);
@@ -664,9 +664,9 @@ void SwDBManager::ImportDBEntry(SwWrtShell* pSh)
SwDBFormatData aDBFormat;
OUString sInsert = GetDBField( xColumnProp, aDBFormat);
if( DB_SEP_SPACE == nSeparator )
- sInsert += OUStringLiteral1<cSpace>();
+ sInsert += OUStringLiteral1(cSpace);
else if( DB_SEP_TAB == nSeparator)
- sInsert += OUStringLiteral1<cTab>();
+ sInsert += OUStringLiteral1(cTab);
pSh->Insert(sInsert);
if( DB_SEP_RETURN == nSeparator)
pSh->SplitNode();
diff --git a/sw/source/uibase/dialog/regionsw.cxx b/sw/source/uibase/dialog/regionsw.cxx
index 8c6ce8279852..df7ae60cf74d 100644
--- a/sw/source/uibase/dialog/regionsw.cxx
+++ b/sw/source/uibase/dialog/regionsw.cxx
@@ -154,8 +154,8 @@ void SwBaseShell::InsertRegionDialog(SfxRequest& rReq)
if(!aFile.isEmpty() || !aSub.isEmpty())
{
- OUString sLinkFileName = OUStringLiteral1<sfx2::cTokenSeparator>()
- + OUStringLiteral1<sfx2::cTokenSeparator>();
+ OUString sLinkFileName = OUStringLiteral1(sfx2::cTokenSeparator)
+ + OUStringLiteral1(sfx2::cTokenSeparator);
sLinkFileName = comphelper::string::setToken(sLinkFileName, 0, sfx2::cTokenSeparator, aFile);
if(SfxItemState::SET ==
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index 72bea275d9d2..0bc99dae7cc5 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -105,7 +105,7 @@ void SwGlossaryHdl::SetCurGroup(const OUString &rGrp, bool bApi, bool bAlwaysCre
OUString sGroup(rGrp);
if (sGroup.indexOf(GLOS_DELIM)<0 && !FindGroupName(sGroup))
{
- sGroup += OUStringLiteral1<GLOS_DELIM>() + "0";
+ sGroup += OUStringLiteral1(GLOS_DELIM) + "0";
}
if(pCurGrp)
{
@@ -201,7 +201,7 @@ void SwGlossaryHdl::RenameGroup(const OUString& rOld, OUString& rNew, const OUSt
OUString sNewGroup(rNew);
if (sNewGroup.indexOf(GLOS_DELIM)<0)
{
- sNewGroup += OUStringLiteral1<GLOS_DELIM>() + "0";
+ sNewGroup += OUStringLiteral1(GLOS_DELIM) + "0";
}
rStatGlossaries.RenameGroupDoc(sOldGroup, sNewGroup, rNewTitle);
rNew = sNewGroup;
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx
index edf3aab7ca9b..71a3e152487f 100644
--- a/sw/source/uibase/docvw/edtwin2.cxx
+++ b/sw/source/uibase/docvw/edtwin2.cxx
@@ -202,7 +202,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
if( !sText.isEmpty() )
{
- OUStringBuffer sTmp(sText.replaceAll(OUStringLiteral1<0xad>(), ""));
+ OUStringBuffer sTmp(sText.replaceAll(OUStringLiteral1(0xad), ""));
for (sal_Int32 i = 0; i < sTmp.getLength(); ++i)
{
if (sTmp[i] < 0x20)
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index e6c9a174ce0f..a51dd7666f3d 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -946,10 +946,10 @@ bool SwFieldMgr::InsertField(
//JP 28.08.95: DDE-Topics/-Items can have blanks in their names!
// That's not yet considered here.
sal_Int32 nIndex = 0;
- OUString sCmd = rData.m_sPar2.replaceFirst(" ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nIndex);
+ OUString sCmd = rData.m_sPar2.replaceFirst(" ", OUStringLiteral1(sfx2::cTokenSeparator), &nIndex);
if (nIndex>=0 && ++nIndex<sCmd.getLength())
{
- sCmd = sCmd.replaceFirst(" ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nIndex);
+ sCmd = sCmd.replaceFirst(" ", OUStringLiteral1(sfx2::cTokenSeparator), &nIndex);
}
SwDDEFieldType aType( rData.m_sPar1, sCmd, static_cast<SfxLinkUpdateMode>(nFormatId) );
@@ -1397,10 +1397,10 @@ void SwFieldMgr::UpdateCurField(sal_uLong nFormat,
// DDE-Topics/-Items can have blanks in their names!
// That's not yet considered here!
sal_Int32 nIndex = 0;
- sPar2 = sPar2.replaceFirst(" ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nIndex );
+ sPar2 = sPar2.replaceFirst(" ", OUStringLiteral1(sfx2::cTokenSeparator), &nIndex );
if (nIndex>=0 && ++nIndex<sPar2.getLength())
{
- sPar2 = sPar2.replaceFirst(" ", OUStringLiteral1<sfx2::cTokenSeparator>(), &nIndex);
+ sPar2 = sPar2.replaceFirst(" ", OUStringLiteral1(sfx2::cTokenSeparator), &nIndex);
}
break;
}
diff --git a/sw/source/uibase/misc/glosdoc.cxx b/sw/source/uibase/misc/glosdoc.cxx
index 720bfcfdc8a1..0959f925d001 100644
--- a/sw/source/uibase/misc/glosdoc.cxx
+++ b/sw/source/uibase/misc/glosdoc.cxx
@@ -185,7 +185,7 @@ bool SwGlossaries::NewGroupDoc(OUString& rGroupName, const OUString& rTitle)
return false;
const OUString sNewFilePath(m_PathArr[nNewPath]);
const OUString sNewGroup = lcl_CheckFileName(sNewFilePath, rGroupName.getToken(0, GLOS_DELIM))
- + OUStringLiteral1<GLOS_DELIM>() + sNewPath;
+ + OUStringLiteral1(GLOS_DELIM) + sNewPath;
SwTextBlocks *pBlock = GetGlosDoc( sNewGroup );
if(pBlock)
{
@@ -233,7 +233,7 @@ bool SwGlossaries::RenameGroupDoc(
RemoveFileFromList( rOldGroup );
- rNewGroup = sNewFileName + OUStringLiteral1<GLOS_DELIM>() + OUString::number(nNewPath);
+ rNewGroup = sNewFileName + OUStringLiteral1(GLOS_DELIM) + OUString::number(nNewPath);
if (m_GlosArr.empty())
{
GetNameList();
@@ -257,7 +257,7 @@ bool SwGlossaries::DelGroupDoc(const OUString &rName)
return false;
const OUString sBaseName(rName.getToken(0, GLOS_DELIM));
const OUString sFileURL = lcl_FullPathName(m_PathArr[nPath], sBaseName);
- const OUString aName = sBaseName + OUStringLiteral1<GLOS_DELIM>() + OUString::number(nPath);
+ const OUString aName = sBaseName + OUStringLiteral1(GLOS_DELIM) + OUString::number(nPath);
// Even if the file doesn't exist it has to be deleted from
// the list of text block regions
// no && because of CFfront
@@ -320,14 +320,14 @@ std::vector<OUString> & SwGlossaries::GetNameList()
{
const OUString aTitle = *filesIt;
const OUString sName( aTitle.copy( 0, aTitle.getLength() - sExt.getLength() )
- + OUStringLiteral1<GLOS_DELIM>() + OUString::number( static_cast<sal_Int16>(i) ));
+ + OUStringLiteral1(GLOS_DELIM) + OUString::number( static_cast<sal_Int16>(i) ));
m_GlosArr.push_back(sName);
}
}
if (m_GlosArr.empty())
{
// the standard block is inside of the path's first part
- m_GlosArr.push_back( SwGlossaries::GetDefName() + OUStringLiteral1<GLOS_DELIM>() + "0" );
+ m_GlosArr.push_back( SwGlossaries::GetDefName() + OUStringLiteral1(GLOS_DELIM) + "0" );
}
}
return m_GlosArr;
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx
index 669457dbf4d1..71cdc006cb21 100644
--- a/sw/source/uibase/ribbar/inputwin.cxx
+++ b/sw/source/uibase/ribbar/inputwin.cxx
@@ -433,8 +433,8 @@ IMPL_LINK_TYPED( SwInputWindow, SelTableCellsNotify, SwWrtShell&, rCaller, void
aEdit->UpdateRange( sBoxNms, sTableNm );
- OUString sNew = OUStringLiteral1<CH_LRE>() + aEdit->GetText()
- + OUStringLiteral1<CH_PDF>();
+ OUString sNew = OUStringLiteral1(CH_LRE) + aEdit->GetText()
+ + OUStringLiteral1(CH_PDF);
if( sNew != sOldFormula )
{
@@ -481,8 +481,8 @@ IMPL_LINK_NOARG_TYPED(SwInputWindow, ModifyHdl, Edit&, void)
{
pWrtShell->StartAllAction();
DelBoxContent();
- OUString sNew = OUStringLiteral1<CH_LRE>() + aEdit->GetText()
- + OUStringLiteral1<CH_PDF>();
+ OUString sNew = OUStringLiteral1(CH_LRE) + aEdit->GetText()
+ + OUStringLiteral1(CH_PDF);
pWrtShell->SwEditShell::Insert2( sNew );
pWrtShell->EndAllAction();
sOldFormula = sNew;
diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx
index 4279963a607c..1ac6ad56b9ee 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -232,7 +232,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
if( SfxItemState::SET == pArgs->GetItemState( FN_PARAM_FIELD_TYPE,
false, &pItem ))
nType = static_cast<const SfxUInt16Item *>(pItem)->GetValue();
- aPar1 += OUStringLiteral1<DB_DELIM>();
+ aPar1 += OUStringLiteral1(DB_DELIM);
if( SfxItemState::SET == pArgs->GetItemState(
FN_PARAM_1, false, &pItem ))
{
@@ -241,9 +241,9 @@ void SwTextShell::ExecField(SfxRequest &rReq)
if( SfxItemState::SET == pArgs->GetItemState(
FN_PARAM_3, false, &pItem ))
nCommand = static_cast<const SfxInt32Item*>(pItem)->GetValue();
- aPar1 += OUStringLiteral1<DB_DELIM>()
+ aPar1 += OUStringLiteral1(DB_DELIM)
+ OUString::number(nCommand)
- + OUStringLiteral1<DB_DELIM>();
+ + OUStringLiteral1(DB_DELIM);
if( SfxItemState::SET == pArgs->GetItemState(
FN_PARAM_2, false, &pItem ))
{
diff --git a/sw/source/uibase/shells/textsh2.cxx b/sw/source/uibase/shells/textsh2.cxx
index b386e6ac20cc..5e5d384a3d38 100644
--- a/sw/source/uibase/shells/textsh2.cxx
+++ b/sw/source/uibase/shells/textsh2.cxx
@@ -196,10 +196,10 @@ void SwTextShell::ExecDB(SfxRequest &rReq)
OUString sColumnName;
if(pColumnNameItem)
static_cast<const SfxUsrAnyItem*>(pColumnNameItem)->GetValue() >>= sColumnName;
- OUString sDBName = sSourceArg + OUStringLiteral1<DB_DELIM>()
- + sCommandArg + OUStringLiteral1<DB_DELIM>()
+ OUString sDBName = sSourceArg + OUStringLiteral1(DB_DELIM)
+ + sCommandArg + OUStringLiteral1(DB_DELIM)
+ OUString::number(nCommandTypeArg)
- + OUStringLiteral1<DB_DELIM>() + sColumnName;
+ + OUStringLiteral1(DB_DELIM) + sColumnName;
SwFieldMgr aFieldMgr(GetShellPtr());
SwInsertField_Data aData(TYP_DBFLD, 0, sDBName, OUString(), 0);
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx
index 21ff39b9c70d..d2fe10f53f5b 100644
--- a/sw/source/uibase/uno/unoatxt.cxx
+++ b/sw/source/uibase/uno/unoatxt.cxx
@@ -174,7 +174,7 @@ uno::Reference< text::XAutoTextGroup > SwXAutoTextContainer::insertNewByName(
OUString sGroup(aGroupName);
if (sGroup.indexOf(GLOS_DELIM)<0)
{
- sGroup += OUStringLiteral1<GLOS_DELIM>() + "0";
+ sGroup += OUStringLiteral1(GLOS_DELIM) + "0";
}
pGlossaries->NewGroupDoc(sGroup, sGroup.getToken(0, GLOS_DELIM));
@@ -484,7 +484,7 @@ void SwXAutoTextGroup::setName(const OUString& rName) throw( uno::RuntimeExcepti
OUString sNewGroup(rName);
if (sNewGroup.indexOf(GLOS_DELIM)<0)
{
- sNewGroup += OUStringLiteral1<GLOS_DELIM>() + "0";
+ sNewGroup += OUStringLiteral1(GLOS_DELIM) + "0";
}
//the name must be saved, the group may be invalidated while in RenameGroupDoc()
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 7ae9017c0e67..0479e72e2251 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1827,7 +1827,7 @@ bool SwContentTree::FillTransferData( TransferDataContainer& rTransfer,
sUrl += "#" + sEntry;
if(!rToken.isEmpty())
{
- sUrl += OUStringLiteral1<cMarkSeparator>() + rToken;
+ sUrl += OUStringLiteral1(cMarkSeparator) + rToken;
}
}
else
diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index 8fc22cb2e39e..71a8dd5eeed9 100644
--- a/sw/source/uibase/utlui/glbltree.cxx
+++ b/sw/source/uibase/utlui/glbltree.cxx
@@ -1370,9 +1370,9 @@ IMPL_LINK_TYPED( SwGlobalTree, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileD
for (SfxMedium* pMed : *pMedList)
{
OUString sFileName = pMed->GetURLObject().GetMainURL( INetURLObject::NO_DECODE )
- + OUStringLiteral1<sfx2::cTokenSeparator>()
+ + OUStringLiteral1(sfx2::cTokenSeparator)
+ pMed->GetFilter()->GetFilterName()
- + OUStringLiteral1<sfx2::cTokenSeparator>();
+ + OUStringLiteral1(sfx2::cTokenSeparator);
pFileNames[nPos++] = sFileName;
}
pMedList.reset();
diff --git a/sw/source/uibase/utlui/gloslst.cxx b/sw/source/uibase/utlui/gloslst.cxx
index 03f479a31774..e86330977d24 100644
--- a/sw/source/uibase/utlui/gloslst.cxx
+++ b/sw/source/uibase/utlui/gloslst.cxx
@@ -301,7 +301,7 @@ void SwGlossaryList::Update()
OUString sName( aTitle.copy( 0, aTitle.getLength() - sExt.getLength() ));
aFoundGroupNames.push_back(sName);
- sName += OUStringLiteral1<GLOS_DELIM>() + OUString::number( static_cast<sal_uInt16>(nPath) );
+ sName += OUStringLiteral1(GLOS_DELIM) + OUString::number( static_cast<sal_uInt16>(nPath) );
AutoTextGroup* pFound = FindGroup( sName );
if( !pFound )
{
@@ -378,9 +378,9 @@ void SwGlossaryList::FillGroup(AutoTextGroup* pGroup, SwGlossaries* pGlossaries)
for(sal_uInt16 j = 0; j < pGroup->nCount; j++)
{
pGroup->sLongNames += pBlock->GetLongName(j)
- + OUStringLiteral1<STRING_DELIM>();
+ + OUStringLiteral1(STRING_DELIM);
pGroup->sShortNames += pBlock->GetShortName(j)
- + OUStringLiteral1<STRING_DELIM>();
+ + OUStringLiteral1(STRING_DELIM);
}
delete pBlock;
}
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx
index 5b65e86a5ecd..12a20aae4d10 100644
--- a/sw/source/uibase/wrtsh/wrtsh2.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh2.cxx
@@ -554,8 +554,8 @@ void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk,
{
SwSectionData aSection( FILE_LINK_SECTION, GetUniqueSectionName() );
OUString aLinkFile = rBkmk.GetURL().getToken(0, '#')
- + OUStringLiteral1<sfx2::cTokenSeparator>()
- + OUStringLiteral1<sfx2::cTokenSeparator>()
+ + OUStringLiteral1(sfx2::cTokenSeparator)
+ + OUStringLiteral1(sfx2::cTokenSeparator)
+ rBkmk.GetURL().getToken(1, '#');
aSection.SetLinkFileName( aLinkFile );
aSection.SetProtectFlag( true );