summaryrefslogtreecommitdiff
path: root/sax/source/expatwrap/saxwriter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sax/source/expatwrap/saxwriter.cxx')
-rw-r--r--sax/source/expatwrap/saxwriter.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index 34338731aa41..12e4674863c1 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -1081,13 +1081,13 @@ void SAXWriter::startElement(const OUString& aName, const Reference< XAttributeL
if( ! m_bDocStarted )
{
SAXException except;
- except.Message = OUString( "startElement called before startDocument" );
+ except.Message = "startElement called before startDocument";
throw except;
}
if( m_bIsCDATA )
{
SAXException except;
- except.Message = OUString( "startElement call not allowed with CDATA sections" );
+ except.Message = "startElement call not allowed with CDATA sections";
throw except;
}
@@ -1133,13 +1133,13 @@ void SAXWriter::startElement(const OUString& aName, const Reference< XAttributeL
if (eRet == SAX_WARNING)
{
SAXInvalidCharacterException except;
- except.Message = OUString( "Invalid character during XML-Export in a attribute value" );
+ except.Message = "Invalid character during XML-Export in a attribute value";
throw except;
}
else if (eRet == SAX_ERROR)
{
SAXException except;
- except.Message = OUString( "Invalid character during XML-Export" );
+ except.Message = "Invalid character during XML-Export";
throw except;
}
}
@@ -1183,7 +1183,7 @@ void SAXWriter::endElement(const OUString& aName) throw (SAXException, Runtime
if (!bRet)
{
SAXException except;
- except.Message = OUString( "Invalid character during XML-Export" );
+ except.Message = "Invalid character during XML-Export";
throw except;
}
}
@@ -1193,7 +1193,7 @@ void SAXWriter::characters(const OUString& aChars) throw(SAXException, RuntimeE
if( ! m_bDocStarted )
{
SAXException except;
- except.Message = OUString( "characters method called before startDocument" );
+ except.Message = "characters method called before startDocument";
throw except;
}
@@ -1235,7 +1235,7 @@ void SAXWriter::characters(const OUString& aChars) throw(SAXException, RuntimeE
if (bThrowException)
{
SAXInvalidCharacterException except;
- except.Message = OUString( "Invalid character during XML-Export" );
+ except.Message = "Invalid character during XML-Export";
throw except;
}
}
@@ -1280,7 +1280,7 @@ void SAXWriter::processingInstruction(const OUString& aTarget, const OUString& a
if (!mp_SaxWriterHelper->processingInstruction(aTarget, aData))
{
SAXException except;
- except.Message = OUString( "Invalid character during XML-Export" );
+ except.Message = "Invalid character during XML-Export";
throw except;
}
}
@@ -1314,7 +1314,7 @@ void SAXWriter::endCDATA(void) throw (RuntimeException)
if( ! m_bDocStarted || ! m_bIsCDATA)
{
SAXException except;
- except.Message = OUString( "endCDATA was called without startCDATA" );
+ except.Message = "endCDATA was called without startCDATA";
throw except;
}
@@ -1352,7 +1352,7 @@ void SAXWriter::comment(const OUString& sComment) throw(SAXException, RuntimeExc
if (!mp_SaxWriterHelper->comment(sComment))
{
SAXException except;
- except.Message = OUString( "Invalid character during XML-Export" );
+ except.Message = "Invalid character during XML-Export";
throw except;
}
}
@@ -1393,7 +1393,7 @@ void SAXWriter::unknown(const OUString& sString) throw (SAXException, RuntimeExc
if (!mp_SaxWriterHelper->writeString( sString, sal_False, sal_False))
{
SAXException except;
- except.Message = OUString( "Invalid character during XML-Export" );
+ except.Message = "Invalid character during XML-Export";
throw except;
}
}