diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-03 20:39:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-03 20:39:57 +0000 |
commit | 3fb951dae5277d1b1ddda749ff3d1266ede274c0 (patch) | |
tree | 38196ddde73c103539e072b672b67e21a4e28c2d /sw/source/ui/uiview/viewling.cxx | |
parent | 120483df68ae590d7979555a4f3bb3b9405a1916 (diff) |
use RTL_CONSTASCII_USTRINGPARAM macro
Diffstat (limited to 'sw/source/ui/uiview/viewling.cxx')
-rw-r--r-- | sw/source/ui/uiview/viewling.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx index bcbcfa1a1c..bbeca70074 100644 --- a/sw/source/ui/uiview/viewling.cxx +++ b/sw/source/ui/uiview/viewling.cxx @@ -737,8 +737,8 @@ sal_Bool SwView::ExecSpellPopup(const Point& rPt) aEvent.ExecutePosition.Y = aPixPos.Y(); Menu* pMenu = 0; - ::rtl::OUString sMenuName = ::rtl::OUString::createFromAscii( - bUseGrammarContext ? "private:resource/GrammarContextMenu" : "private:resource/SpellContextMenu"); + ::rtl::OUString sMenuName = bUseGrammarContext ? + OUString(RTL_CONSTASCII_USTRINGPARAM("private:resource/GrammarContextMenu")) : OUString(RTL_CONSTASCII_USTRINGPARAM("private:resource/SpellContextMenu")); if(TryContextMenuInterception( *pPopup, sMenuName, pMenu, aEvent )) { @@ -890,7 +890,7 @@ public: assert(fieldBM!=NULL); if (fieldBM!=NULL) { const IFieldmark::parameter_map_t* const pParameters = fieldBM->GetParameters(); - IFieldmark::parameter_map_t::const_iterator pListEntries = pParameters->find(::rtl::OUString::createFromAscii(ODF_FORMDROPDOWN_LISTENTRY)); + IFieldmark::parameter_map_t::const_iterator pListEntries = pParameters->find(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(ODF_FORMDROPDOWN_LISTENTRY))); if(pListEntries != pParameters->end()) { Sequence< ::rtl::OUString> vListEntries; @@ -971,7 +971,7 @@ BOOL SwView::ExecFieldPopup( const Point& rPt, IFieldmark *fieldBM ) /*short ret=*/aFldDlg.Execute(); sal_Int32 selection=aFldDlg.getSelection(); if (selection>=0) { - (*fieldBM->GetParameters())[::rtl::OUString::createFromAscii(ODF_FORMDROPDOWN_RESULT)] = makeAny(selection); + (*fieldBM->GetParameters())[::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(ODF_FORMDROPDOWN_RESULT))] = makeAny(selection); } pWrtShell->Pop( sal_False ); |