From: APTX Date: Fri, 6 Apr 2012 17:30:37 +0000 (-0400) Subject: HORRIBLE workaround for a missing method X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=4734d249412b6462998c70d0e9d71a943ee67f94;p=libferris.git HORRIBLE workaround for a missing method --- diff --git a/xsltfunctions/xslt_ferris.cpp b/xsltfunctions/xslt_ferris.cpp index 6a7f5e7..4d58d6a 100644 --- a/xsltfunctions/xslt_ferris.cpp +++ b/xsltfunctions/xslt_ferris.cpp @@ -69,7 +69,7 @@ namespace FerrisXSLT if (args.size() < 3 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//error( getError( buf ), context); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -98,7 +98,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -151,7 +151,7 @@ namespace FerrisXSLT if (args.size() < 3 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//error( getError( buf ), context); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -183,7 +183,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -238,7 +238,7 @@ namespace FerrisXSLT if (args.size() < 3 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context ); + executionContext;//error( getError( buf ), context ); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -265,7 +265,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -319,7 +319,7 @@ namespace FerrisXSLT if (args.size() < 1 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context ); + executionContext;//error( getError( buf ), context ); } assert( !args[0].null() ); @@ -334,7 +334,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -391,7 +391,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -447,7 +447,7 @@ namespace FerrisXSLT if (args.size() < 2 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context ); + executionContext;//error( getError( buf ), context ); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -505,7 +505,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -574,7 +574,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -643,7 +643,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } @@ -709,7 +709,7 @@ namespace FerrisXSLT if (args.size() != 1 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context ); + executionContext;//error( getError( buf ), context ); } assert( !args[0].null() ); @@ -719,7 +719,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//error( domstr(e.what()), context ); } } diff --git a/xsltfunctions/xslt_fs.cpp b/xsltfunctions/xslt_fs.cpp index c81c6a4..b4b6328 100644 --- a/xsltfunctions/xslt_fs.cpp +++ b/xsltfunctions/xslt_fs.cpp @@ -81,7 +81,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context); + executionContext;//.error( domstr(e.what()), context); } } diff --git a/xsltfunctions/xslt_shell.cpp b/xsltfunctions/xslt_shell.cpp index ec92706..e55d356 100644 --- a/xsltfunctions/xslt_shell.cpp +++ b/xsltfunctions/xslt_shell.cpp @@ -73,7 +73,7 @@ namespace FerrisXSLT if (args.size() != 1) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -83,7 +83,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -139,7 +139,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -195,7 +195,7 @@ namespace FerrisXSLT if (args.size() != 1) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -208,7 +208,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -264,7 +264,7 @@ namespace FerrisXSLT if (args.size() != 2) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -339,7 +339,7 @@ namespace FerrisXSLT cerr << "create-dir wrong args size" << endl; XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } cerr << "create-dir2 args.sz:" << args.size() << endl; @@ -362,7 +362,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -419,7 +419,7 @@ namespace FerrisXSLT if (args.size() != 2 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -435,7 +435,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -490,7 +490,7 @@ namespace FerrisXSLT if (args.size() != 1 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -501,7 +501,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -558,7 +558,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -613,7 +613,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -669,7 +669,7 @@ namespace FerrisXSLT if (args.size() != 1 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -680,7 +680,7 @@ namespace FerrisXSLT } catch( std::exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -739,7 +739,7 @@ namespace FerrisXSLT if (args.size() != 3 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -766,7 +766,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context); + executionContext;//.error( domstr(e.what()), context); } } @@ -822,7 +822,7 @@ namespace FerrisXSLT if (args.size() != 3 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -873,7 +873,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context ); + executionContext;//.error( domstr(e.what()), context ); } } @@ -929,7 +929,7 @@ namespace FerrisXSLT if (args.size() != 2 ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -945,7 +945,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr(e.what()), context); + executionContext;//.error( domstr(e.what()), context); } } diff --git a/xsltfunctions/xslt_string.cpp b/xsltfunctions/xslt_string.cpp index 7d068d7..fab4fdd 100644 --- a/xsltfunctions/xslt_string.cpp +++ b/xsltfunctions/xslt_string.cpp @@ -73,7 +73,7 @@ namespace FerrisXSLT if (args.size() != 2) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -92,7 +92,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr( e.what() ), context); + executionContext;//.error( domstr( e.what() ), context); } } @@ -148,7 +148,7 @@ namespace FerrisXSLT if (args.size() != 2) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -165,7 +165,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr( e.what() ), context); + executionContext;//.error( domstr( e.what() ), context); } } @@ -220,7 +220,7 @@ namespace FerrisXSLT if (args.size() != 3) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); assert( !args[1].null() ); @@ -233,7 +233,7 @@ namespace FerrisXSLT if( oldv.empty() || newv.empty() ) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } replace_if( str.begin(), str.end(), @@ -247,7 +247,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr( e.what() ), context); + executionContext;//.error( domstr( e.what() ), context); } } @@ -302,7 +302,7 @@ namespace FerrisXSLT if (args.size() != 1) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } assert( !args[0].null() ); @@ -319,7 +319,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr( e.what() ), context ); + executionContext;//.error( domstr( e.what() ), context ); } } @@ -382,7 +382,7 @@ namespace FerrisXSLT if (args.size() != 0) { XalanDOMString buf; - executionContext.error( getError( buf ), context); + executionContext;//.error( getError( buf ), context); } ++Counter; @@ -392,7 +392,7 @@ namespace FerrisXSLT } catch( exception& e ) { - executionContext.error( domstr( e.what() ), context ); + executionContext;//.error( domstr( e.what() ), context ); } }