From e63beeb5bdb82987b1e00bc35178667786fbad48 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:20:48 -0600 Subject: Fix incorrect conversion --- kjsembed/builtins/saxhandler.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kjsembed/builtins/saxhandler.cpp') diff --git a/kjsembed/builtins/saxhandler.cpp b/kjsembed/builtins/saxhandler.cpp index 50507ff9..ff0334bf 100644 --- a/kjsembed/builtins/saxhandler.cpp +++ b/kjsembed/builtins/saxhandler.cpp @@ -23,7 +23,7 @@ namespace KJSEmbed { namespace BuiltIns { SaxHandler::SaxHandler( KJS::ExecState *execstate ) - : TTQXmlDefaultHandler(), exec(execstate), error( ErrorNone ) + : TQXmlDefaultHandler(), exec(execstate), error( ErrorNone ) { } @@ -45,7 +45,7 @@ bool SaxHandler::startDocument() KJS::Identifier funName("startDocument"); if ( !jshandler.hasProperty(exec, funName) ) - return TTQXmlDefaultHandler::startDocument(); + return TQXmlDefaultHandler::startDocument(); KJS::Object fun = jshandler.get(exec, funName).toObject( exec ); if ( !fun.implementsCall() ) { @@ -66,7 +66,7 @@ bool SaxHandler::endDocument() KJS::Identifier funName("endDocument"); if ( !jshandler.hasProperty(exec, funName) ) - return TTQXmlDefaultHandler::endDocument(); + return TQXmlDefaultHandler::endDocument(); KJS::Object fun = jshandler.get(exec, funName).toObject( exec ); if ( !fun.implementsCall() ) { @@ -78,8 +78,8 @@ bool SaxHandler::endDocument() return ret.toBoolean( exec ); } -bool SaxHandler::startElement( const TTQString &ns, const TTQString &ln, const TTQString &qn, - const TTQXmlAttributes &attrs ) +bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQString &qn, + const TQXmlAttributes &attrs ) { if ( !jshandler.isValid() ) { error = ErrorNoHandler; @@ -88,7 +88,7 @@ bool SaxHandler::startElement( const TTQString &ns, const TTQString &ln, const T KJS::Identifier funName("startElement"); if ( !jshandler.hasProperty(exec, funName) ) - return TTQXmlDefaultHandler::startElement( ns, ln, qn, attrs ); + return TQXmlDefaultHandler::startElement( ns, ln, qn, attrs ); KJS::Object fun = jshandler.get(exec, funName).toObject( exec ); if ( !fun.implementsCall() ) { @@ -106,7 +106,7 @@ bool SaxHandler::startElement( const TTQString &ns, const TTQString &ln, const T return ret.toBoolean( exec ); } -bool SaxHandler::endElement( const TTQString &ns, const TTQString &ln, const TTQString &qn ) +bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQString &qn ) { if ( !jshandler.isValid() ) { error = ErrorNoHandler; @@ -115,7 +115,7 @@ bool SaxHandler::endElement( const TTQString &ns, const TTQString &ln, const TTQ KJS::Identifier funName("endElement"); if ( !jshandler.hasProperty(exec, funName) ) - return TTQXmlDefaultHandler::endElement( ns, ln, qn ); + return TQXmlDefaultHandler::endElement( ns, ln, qn ); KJS::Object fun = jshandler.get(exec, funName).toObject( exec ); if ( !fun.implementsCall() ) { @@ -132,7 +132,7 @@ bool SaxHandler::endElement( const TTQString &ns, const TTQString &ln, const TTQ return ret.toBoolean( exec ); } -bool SaxHandler::characters( const TTQString &chars ) +bool SaxHandler::characters( const TQString &chars ) { if ( !jshandler.isValid() ) { error = ErrorNoHandler; @@ -141,7 +141,7 @@ bool SaxHandler::characters( const TTQString &chars ) KJS::Identifier funName("characters"); if ( !jshandler.hasProperty(exec, funName) ) - return TTQXmlDefaultHandler::characters( chars ); + return TQXmlDefaultHandler::characters( chars ); KJS::Object fun = jshandler.get(exec, funName).toObject( exec ); if ( !fun.implementsCall() ) { @@ -156,15 +156,15 @@ bool SaxHandler::characters( const TTQString &chars ) return ret.toBoolean( exec ); } -TTQString SaxHandler::errorString() +TQString SaxHandler::errorString() { switch( error ) { case ErrorNoHandler: - return TTQString("No handler specified"); + return TQString("No handler specified"); break; case ErrorNotCallable: - return TTQString("One of the callbacks of the handler is not callable"); + return TQString("One of the callbacks of the handler is not callable"); break; case ErrorNone: // This only means that no error occured in the JS dispatch, there @@ -175,7 +175,7 @@ TTQString SaxHandler::errorString() break; } - return TTQXmlDefaultHandler::errorString(); + return TQXmlDefaultHandler::errorString(); } } // namespace KJSEmbed::BuiltIns -- cgit v1.2.1