summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtwin2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/edtwin2.cxx')
-rw-r--r--sw/source/uibase/docvw/edtwin2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx
index 7cdc9d6e4f5a..c99197eb074f 100644
--- a/sw/source/uibase/docvw/edtwin2.cxx
+++ b/sw/source/uibase/docvw/edtwin2.cxx
@@ -281,7 +281,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
{
sTxt = SW_RESSTR(STR_CONTENT_TYPE_SINGLE_REFERENCE);
sTxt += ": ";
- sTxt += ((const SwFmtRefMark*)aCntntAtPos.aFnd.pAttr)->GetRefName();
+ sTxt += static_cast<const SwFmtRefMark*>(aCntntAtPos.aFnd.pAttr)->GetRefName();
}
break;
@@ -328,7 +328,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
break;
case RES_MACROFLD:
- sTxt = ((const SwMacroField*)pFld)->GetMacro();
+ sTxt = static_cast<const SwMacroField*>(pFld)->GetMacro();
break;
case RES_GETREFFLD: