leftover debug?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

leftover debug?

Don Lewis-2
It looks like there is some leftover debug code in trunk commit
5168e59c15cb9af435bdca9b78b99d1abe16c58e.

main/scripting/source/protocolhandler/scripthandler.cxx:
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 147) void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 148)     const URL& aURL, const Sequence < PropertyValue >& lArgs,
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 149)     const Reference< XDispatchResultListener >& xListener )
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 150)     throw ( RuntimeException )
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 151) {
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 152)
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 153)     sal_Bool bSuccess = sal_False;
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 154)     Any invokeResult;
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 155) bool bCaughtException = sal_False;
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 156) Any aException;
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 157)
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 158)     if ( m_bInitialised )
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 159)     {
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 160)         try
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 161)         {
5168e59c (mseidel        2019-08-19 18:28:35 +0200 162) printf("ScriptProtocolHandler::dispatchWithNotification()\n");
5168e59c (mseidel        2019-08-19 18:28:35 +0200 163)             ::rtl::OUString xStringUri = ::rtl::Uri::decode( aURL.Complete,
5168e59c (mseidel        2019-08-19 18:28:35 +0200 164)                 rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 );
5168e59c (mseidel        2019-08-19 18:28:35 +0200 165)             bool bIsDocumentScript = ( xStringUri.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "document" ) ) !=-1 );
5168e59c (mseidel        2019-08-19 18:28:35 +0200 166) printf("URI is %s\n", ::rtl::OUStringToOString (xStringUri, RTL_TEXTENCODING_UTF8).pData->buffer);
cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 167)

I found it because printf was not declared when attempting to build on
CentOS 6.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: leftover debug?

Damjan Jovanovic
Please delete it.

Thank you
Damjan


On Wed, Oct 2, 2019 at 2:33 AM Don Lewis <[hidden email]> wrote:

> It looks like there is some leftover debug code in trunk commit
> 5168e59c15cb9af435bdca9b78b99d1abe16c58e.
>
> main/scripting/source/protocolhandler/scripthandler.cxx:
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 147) void SAL_CALL
> ScriptProtocolHandler::dispatchWithNotification(
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 148)     const URL&
> aURL, const Sequence < PropertyValue >& lArgs,
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 149)     const
> Reference< XDispatchResultListener >& xListener )
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 150)     throw (
> RuntimeException )
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 151) {
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 152)
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 153)     sal_Bool
> bSuccess = sal_False;
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 154)     Any
> invokeResult;
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 155)         bool
> bCaughtException = sal_False;
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 156)         Any
> aException;
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 157)
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 158)     if (
> m_bInitialised )
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 159)     {
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 160)         try
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 161)         {
> 5168e59c (mseidel        2019-08-19 18:28:35 +0200 162)
> printf("ScriptProtocolHandler::dispatchWithNotification()\n");
> 5168e59c (mseidel        2019-08-19 18:28:35 +0200 163)
>  ::rtl::OUString xStringUri = ::rtl::Uri::decode( aURL.Complete,
> 5168e59c (mseidel        2019-08-19 18:28:35 +0200 164)
>  rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 );
> 5168e59c (mseidel        2019-08-19 18:28:35 +0200 165)             bool
> bIsDocumentScript = ( xStringUri.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM(
> "document" ) ) !=-1 );
> 5168e59c (mseidel        2019-08-19 18:28:35 +0200 166) printf("URI is
> %s\n", ::rtl::OUStringToOString (xStringUri,
> RTL_TEXTENCODING_UTF8).pData->buffer);
> cdf0e10c (rcweir         2011-08-16 17:05:51 +0000 167)
>
> I found it because printf was not declared when attempting to build on
> CentOS 6.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>