summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-02-09 09:21:53 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-02-09 08:11:34 +0000
commit538f276ae0414ea34ede6090b5f56e8fecd6fc65 (patch)
treeefbfb952f3236a6f56540ddae6a896c8c73774a0 /odk
parentf12e483589888f87843026ceff5ae3c1e615ca02 (diff)
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 <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/MyJob.cxx2
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx16
2 files changed, 9 insertions, 9 deletions
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");