summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-12-02 23:14:40 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-12-02 23:17:30 -0500
commit8093e86ebea285955a5ae65086d5c384bbc8c0b6 (patch)
tree786d75b3d6a71a4717c12ffe7fc87bfdfb93a530 /sw/qa
parentf20043a0805c3a75eb4024ed59f45291aea93ac0 (diff)
Revert "loplugin: cstylecast"
This reverts commit 8dba4716d2e7fcaf00cc347d4989c24539ea0fe6. <:: is not a legal syntax at least with gcc 4.7.
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/core/uwriter.cxx2
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index 3a4af6d5580c..55a93909b056 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -699,7 +699,7 @@ void SwDocTest::testSwScanner()
DateTime aDate(DateTime::SYSTEM);
SwPostItField aPostIt(
- static_cast<SwPostItFieldType*>(m_pDoc->getIDocumentFieldsAccess().GetSysFldType(RES_POSTITFLD)), OUString("An Author"),
+ (SwPostItFieldType*)m_pDoc->getIDocumentFieldsAccess().GetSysFldType(RES_POSTITFLD), OUString("An Author"),
OUString("Some Text"), OUString("Initials"), OUString("Name"), aDate );
m_pDoc->getIDocumentContentOperations().InsertPoolItem(aPaM, SwFmtFld(aPostIt), 0);
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 6fe83c2fad8c..8496e301920e 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -293,7 +293,7 @@ void SwUiWriterTest::testFdo74981()
// create a document with an input field
SwDoc* pDoc = createDoc();
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
- SwInputField aField(static_cast<SwInputFieldType*>(pWrtShell->GetFldType(0, RES_INPUTFLD)), OUString("foo"), OUString("bar"), 0, 0);
+ SwInputField aField((SwInputFieldType*)pWrtShell->GetFldType(0, RES_INPUTFLD), OUString("foo"), OUString("bar"), 0, 0);
pWrtShell->Insert(aField);
// expect hints