Kaydet (Commit) 88c397aa authored tarafından Matteo Casalin's avatar Matteo Casalin

Use literal ASCII strings directly

Change-Id: I759c9dc5d698bc4444aa941907fbc1302e2d984c
üst 4452ac23
...@@ -260,8 +260,8 @@ void SwXReferenceMark::Impl::InsertRefMark(SwPaM& rPam, ...@@ -260,8 +260,8 @@ void SwXReferenceMark::Impl::InsertRefMark(SwPaM& rPam,
if (!pTxtAttr) if (!pTxtAttr)
{ {
throw uno::RuntimeException(OUString( throw uno::RuntimeException(
"SwXReferenceMark::InsertRefMark(): cannot insert attribute"), 0); "SwXReferenceMark::InsertRefMark(): cannot insert attribute", 0);
} }
m_pMarkFmt = &pTxtAttr->GetRefMark(); m_pMarkFmt = &pTxtAttr->GetRefMark();
...@@ -980,16 +980,16 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) ...@@ -980,16 +980,16 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!m_pImpl->m_bIsDescriptor) if (!m_pImpl->m_bIsDescriptor)
{ {
throw uno::RuntimeException( throw uno::RuntimeException(
OUString("SwXMeta::attach(): already attached"), "SwXMeta::attach(): already attached",
static_cast< ::cppu::OWeakObject* >(this)); static_cast< ::cppu::OWeakObject* >(this));
} }
uno::Reference<lang::XUnoTunnel> xRangeTunnel(i_xTextRange, uno::UNO_QUERY); uno::Reference<lang::XUnoTunnel> xRangeTunnel(i_xTextRange, uno::UNO_QUERY);
if (!xRangeTunnel.is()) if (!xRangeTunnel.is())
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): argument is no XUnoTunnel"), "SwXMeta::attach(): argument is no XUnoTunnel",
static_cast< ::cppu::OWeakObject* >(this), 0); static_cast< ::cppu::OWeakObject* >(this), 0);
} }
SwXTextRange *const pRange( SwXTextRange *const pRange(
::sw::UnoTunnelGetImplementation<SwXTextRange>(xRangeTunnel)); ::sw::UnoTunnelGetImplementation<SwXTextRange>(xRangeTunnel));
...@@ -998,8 +998,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) ...@@ -998,8 +998,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!pRange && !pCursor) if (!pRange && !pCursor)
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): argument not supported type"), "SwXMeta::attach(): argument not supported type",
static_cast< ::cppu::OWeakObject* >(this), 0); static_cast< ::cppu::OWeakObject* >(this), 0);
} }
SwDoc * const pDoc( SwDoc * const pDoc(
...@@ -1007,8 +1007,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) ...@@ -1007,8 +1007,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!pDoc) if (!pDoc)
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): argument has no SwDoc"), "SwXMeta::attach(): argument has no SwDoc",
static_cast< ::cppu::OWeakObject* >(this), 0); static_cast< ::cppu::OWeakObject* >(this), 0);
} }
SwUnoInternalPaM aPam(*pDoc); SwUnoInternalPaM aPam(*pDoc);
...@@ -1034,15 +1034,15 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) ...@@ -1034,15 +1034,15 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!bSuccess) if (!bSuccess)
{ {
throw lang::IllegalArgumentException( throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): cannot create meta: range invalid?"), "SwXMeta::attach(): cannot create meta: range invalid?",
static_cast< ::cppu::OWeakObject* >(this), 1); static_cast< ::cppu::OWeakObject* >(this), 1);
} }
if (!pTxtAttr) if (!pTxtAttr)
{ {
OSL_FAIL("meta inserted, but has no text attribute?"); OSL_FAIL("meta inserted, but has no text attribute?");
throw uno::RuntimeException( throw uno::RuntimeException(
OUString("SwXMeta::attach(): cannot create meta"), "SwXMeta::attach(): cannot create meta",
static_cast< ::cppu::OWeakObject* >(this)); static_cast< ::cppu::OWeakObject* >(this));
} }
pMeta->Add(m_pImpl.get()); pMeta->Add(m_pImpl.get());
...@@ -1073,7 +1073,7 @@ SwXMeta::getAnchor() throw (uno::RuntimeException, std::exception) ...@@ -1073,7 +1073,7 @@ SwXMeta::getAnchor() throw (uno::RuntimeException, std::exception)
if (m_pImpl->m_bIsDescriptor) if (m_pImpl->m_bIsDescriptor)
{ {
throw uno::RuntimeException( throw uno::RuntimeException(
OUString("SwXMeta::getAnchor(): not inserted"), "SwXMeta::getAnchor(): not inserted",
static_cast< ::cppu::OWeakObject* >(this)); static_cast< ::cppu::OWeakObject* >(this));
} }
...@@ -1085,7 +1085,7 @@ SwXMeta::getAnchor() throw (uno::RuntimeException, std::exception) ...@@ -1085,7 +1085,7 @@ SwXMeta::getAnchor() throw (uno::RuntimeException, std::exception)
if (!bSuccess) if (!bSuccess)
{ {
throw lang::DisposedException( throw lang::DisposedException(
OUString("SwXMeta::getAnchor(): not attached"), "SwXMeta::getAnchor(): not attached",
static_cast< ::cppu::OWeakObject* >(this)); static_cast< ::cppu::OWeakObject* >(this));
} }
...@@ -1240,7 +1240,7 @@ SwXMeta::createEnumeration() throw (uno::RuntimeException, std::exception) ...@@ -1240,7 +1240,7 @@ SwXMeta::createEnumeration() throw (uno::RuntimeException, std::exception)
if (m_pImpl->m_bIsDescriptor) if (m_pImpl->m_bIsDescriptor)
{ {
throw uno::RuntimeException( throw uno::RuntimeException(
OUString("createEnumeration(): not inserted"), "createEnumeration(): not inserted",
static_cast< ::cppu::OWeakObject* >(this)); static_cast< ::cppu::OWeakObject* >(this));
} }
...@@ -1567,7 +1567,7 @@ getPrefixAndSuffix( ...@@ -1567,7 +1567,7 @@ getPrefixAndSuffix(
throw; throw;
} catch (const uno::Exception & e) { } catch (const uno::Exception & e) {
throw lang::WrappedTargetRuntimeException( throw lang::WrappedTargetRuntimeException(
OUString("getPrefixAndSuffix: exception"), "getPrefixAndSuffix: exception",
0, uno::makeAny(e)); 0, uno::makeAny(e));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment