diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/wrong.hxx | 4 | ||||
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/lingu/olmenu.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/inc/wrong.hxx b/sw/source/core/inc/wrong.hxx index 37f56bf3d2b1..77a78f0bb96a 100644 --- a/sw/source/core/inc/wrong.hxx +++ b/sw/source/core/inc/wrong.hxx @@ -87,7 +87,7 @@ private: { if (xPropertyBag.is()) { - const ::rtl::OUString colorKey = ::rtl::OUString::createFromAscii ("LineColor"); + const ::rtl::OUString colorKey("LineColor"); com::sun::star::uno::Any aLineColor = xPropertyBag->getValue(colorKey).get< com::sun::star::uno::Any>(); com::sun::star::util::Color lineColor = 0; @@ -113,7 +113,7 @@ private: { if (xPropertyBag.is()) { - const ::rtl::OUString typeKey = ::rtl::OUString::createFromAscii ("LineType"); + const ::rtl::OUString typeKey("LineType"); com::sun::star::uno::Any aLineType = xPropertyBag->getValue(typeKey).get< com::sun::star::uno::Any>(); ::sal_Int16 lineType = 0; diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 28178421a87e..07b60035c1aa 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1850,7 +1850,7 @@ void SwXText::Impl::ConvertCell( if (rCell.getLength() != 2) { throw lang::IllegalArgumentException( - OUString::createFromAscii( "rCell needs to contain 2 elements" ), + "rCell needs to contain 2 elements", uno::Reference< text::XTextCopy >( &m_rThis ), sal_Int16( 2 ) ); } const uno::Reference<text::XTextRange> xStartRange = rCell[0]; @@ -1865,7 +1865,7 @@ void SwXText::Impl::ConvertCell( !::sw::XTextRangeToSwPaM(aEndCellPam, xEndRange)) { throw lang::IllegalArgumentException( - OUString::createFromAscii( "Start or End range cannot be resolved to a SwPaM" ), + "Start or End range cannot be resolved to a SwPaM", uno::Reference< text::XTextCopy >( &m_rThis ), sal_Int16( 2 ) ); } @@ -2558,7 +2558,7 @@ throw (uno::RuntimeException) } if(!aRef.is()) { - throw uno::RuntimeException( OUString::createFromAscii( "End of content node doesn't have the proper start node" ), + throw uno::RuntimeException( "End of content node doesn't have the proper start node", uno::Reference< uno::XInterface >( *this ) ); } return aRef; diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx index e640794dbaee..43398e11e8ee 100644 --- a/sw/source/ui/lingu/olmenu.cxx +++ b/sw/source/ui/lingu/olmenu.cxx @@ -795,7 +795,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) OUString msg( ::comphelper::anyToString( exc ) ); const SolarMutexGuard guard; ErrorBox aErrorBox( NULL, WB_OK, msg ); - aErrorBox.SetText( OUString::createFromAscii( "Explanations" ) ); + aErrorBox.SetText( "Explanations" ); aErrorBox.Execute(); } } |