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,
if (!pTxtAttr)
{
throw uno::RuntimeException(OUString(
"SwXReferenceMark::InsertRefMark(): cannot insert attribute"), 0);
throw uno::RuntimeException(
"SwXReferenceMark::InsertRefMark(): cannot insert attribute", 0);
}
m_pMarkFmt = &pTxtAttr->GetRefMark();
......@@ -980,7 +980,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!m_pImpl->m_bIsDescriptor)
{
throw uno::RuntimeException(
OUString("SwXMeta::attach(): already attached"),
"SwXMeta::attach(): already attached",
static_cast< ::cppu::OWeakObject* >(this));
}
......@@ -988,7 +988,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!xRangeTunnel.is())
{
throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): argument is no XUnoTunnel"),
"SwXMeta::attach(): argument is no XUnoTunnel",
static_cast< ::cppu::OWeakObject* >(this), 0);
}
SwXTextRange *const pRange(
......@@ -998,7 +998,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!pRange && !pCursor)
{
throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): argument not supported type"),
"SwXMeta::attach(): argument not supported type",
static_cast< ::cppu::OWeakObject* >(this), 0);
}
......@@ -1007,7 +1007,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!pDoc)
{
throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): argument has no SwDoc"),
"SwXMeta::attach(): argument has no SwDoc",
static_cast< ::cppu::OWeakObject* >(this), 0);
}
......@@ -1034,14 +1034,14 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (!bSuccess)
{
throw lang::IllegalArgumentException(
OUString("SwXMeta::attach(): cannot create meta: range invalid?"),
"SwXMeta::attach(): cannot create meta: range invalid?",
static_cast< ::cppu::OWeakObject* >(this), 1);
}
if (!pTxtAttr)
{
OSL_FAIL("meta inserted, but has no text attribute?");
throw uno::RuntimeException(
OUString("SwXMeta::attach(): cannot create meta"),
"SwXMeta::attach(): cannot create meta",
static_cast< ::cppu::OWeakObject* >(this));
}
......@@ -1073,7 +1073,7 @@ SwXMeta::getAnchor() throw (uno::RuntimeException, std::exception)
if (m_pImpl->m_bIsDescriptor)
{
throw uno::RuntimeException(
OUString("SwXMeta::getAnchor(): not inserted"),
"SwXMeta::getAnchor(): not inserted",
static_cast< ::cppu::OWeakObject* >(this));
}
......@@ -1085,7 +1085,7 @@ SwXMeta::getAnchor() throw (uno::RuntimeException, std::exception)
if (!bSuccess)
{
throw lang::DisposedException(
OUString("SwXMeta::getAnchor(): not attached"),
"SwXMeta::getAnchor(): not attached",
static_cast< ::cppu::OWeakObject* >(this));
}
......@@ -1240,7 +1240,7 @@ SwXMeta::createEnumeration() throw (uno::RuntimeException, std::exception)
if (m_pImpl->m_bIsDescriptor)
{
throw uno::RuntimeException(
OUString("createEnumeration(): not inserted"),
"createEnumeration(): not inserted",
static_cast< ::cppu::OWeakObject* >(this));
}
......@@ -1567,7 +1567,7 @@ getPrefixAndSuffix(
throw;
} catch (const uno::Exception & e) {
throw lang::WrappedTargetRuntimeException(
OUString("getPrefixAndSuffix: exception"),
"getPrefixAndSuffix: exception",
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