From 538f276ae0414ea34ede6090b5f56e8fecd6fc65 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Tue, 9 Feb 2016 09:21:53 +1100 Subject: Formatting changes across all modules + Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins Reviewed-by: Chris Sherlock --- odk/examples/cpp/complextoolbarcontrols/MyJob.cxx | 2 +- .../cpp/complextoolbarcontrols/MyProtocolHandler.cxx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'odk/examples') diff --git a/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx b/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx index bb7580ba75ce..656eb6942a81 100644 --- a/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/MyJob.cxx @@ -53,7 +53,7 @@ Any SAL_CALL MyJob::execute( const Sequence< NamedValue >& aArguments ) OUString MyJob_getImplementationName () throw (RuntimeException) { - return OUString( "com.sun.star.comp.Office.MyJob" ); + return OUString( "com.sun.star.comp.Office.MyJob" ); } #define SERVICE_NAME "com.sun.star.task.Job" diff --git a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx index 852a063d2c4d..924e7695a62e 100644 --- a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx @@ -122,7 +122,7 @@ Reference< XDispatch > SAL_CALL MyProtocolHandler::queryDispatch( const URL& a return 0; Reference < XController > xCtrl = mxFrame->getController(); - if ( xCtrl.is() && aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" ) + if ( xCtrl.is() && aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" ) { Reference < XTextViewCursorSupplier > xCursor( xCtrl, UNO_QUERY ); Reference < XSpreadsheetView > xView( xCtrl, UNO_QUERY ); @@ -130,12 +130,12 @@ Reference< XDispatch > SAL_CALL MyProtocolHandler::queryDispatch( const URL& a // without an appropriate corresponding document the handler doesn't function return xRet; - if ( aURL.Path == "ImageButtonCmd" || - aURL.Path == "ComboboxCmd" || - aURL.Path == "ToggleDropdownButtonCmd" || - aURL.Path == "DropdownButtonCmd" || - aURL.Path == "SpinfieldCmd" || - aURL.Path == "EditfieldCmd" || + if ( aURL.Path == "ImageButtonCmd" || + aURL.Path == "ComboboxCmd" || + aURL.Path == "ToggleDropdownButtonCmd" || + aURL.Path == "DropdownButtonCmd" || + aURL.Path == "SpinfieldCmd" || + aURL.Path == "EditfieldCmd" || aURL.Path == "DropdownboxCmd" ) { xRet = aListenerHelper.GetDispatch( mxFrame, aURL.Path ); @@ -217,7 +217,7 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property if ( aURL.Protocol == "vnd.demo.complextoolbarcontrols.demoaddon:" ) { - if ( aURL.Path == "ImageButtonCmd" ) + if ( aURL.Path == "ImageButtonCmd" ) { // open the LibreOffice web page ::rtl::OUString sURL("http://www.libreoffice.org"); -- cgit