[Libreoffice-commits] core.git: odk/examples

Chris Laplante mostthingsweb at gmail.com
Tue Aug 19 00:54:40 PDT 2014


 odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx |    4 ---
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx                  |    4 +--
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx            |    3 --
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx                      |    4 +--
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx           |    2 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx                   |    5 ---
 odk/examples/OLE/activex/SOComWindowPeer.h                                            |    3 --
 odk/examples/cpp/DocumentLoader/DocumentLoader.cxx                                    |    9 ------
 odk/examples/cpp/complextoolbarcontrols/MyListener.h                                  |    2 -
 odk/examples/cpp/counter/counter.cxx                                                  |   13 +---------
 odk/examples/cpp/counter/countermain.cxx                                              |    9 ------
 odk/examples/cpp/custompanel/ctp_factory.cxx                                          |    4 ---
 odk/examples/cpp/custompanel/ctp_factory.hxx                                          |    4 ---
 odk/examples/cpp/custompanel/ctp_panel.cxx                                            |    7 -----
 odk/examples/cpp/custompanel/ctp_panel.hxx                                            |    7 -----
 15 files changed, 10 insertions(+), 70 deletions(-)

New commits:
commit 341d9c4f089c4e8dee96c49a81abf24ab809f367
Author: Chris Laplante <mostthingsweb at gmail.com>
Date:   Mon Aug 18 16:15:41 2014 -0400

    odk: Clean up comments
    
    Change-Id: I38aa34192244cdd29e1cce7ac612aa9cd5f9e8a1
    Reviewed-on: https://gerrit.libreoffice.org/11006
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
index 6233fb7..6a57f32 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
+++ b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/component.cxx
@@ -53,10 +53,6 @@ using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::registry;
 
-
-//#### EXPORTED ####################################################################################
-
-
 /**
  * This function is called to get service factories for an implementation.
  *
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
index 7075197..0530fed 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
@@ -280,8 +280,8 @@ void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 level ) throw(SQLE
     ::osl::MutexGuard aGuard( m_aMutex );
     checkDisposed(OConnection_BASE::rBHelper.bDisposed);
 
-    // set your isolation level
-    // please have a look at @see com.sun.star.sdbc.TransactionIsolation
+    /// set your isolation level
+    /// please have a look at @see com.sun.star.sdbc.TransactionIsolation
 }
 
 sal_Int32 SAL_CALL OConnection::getTransactionIsolation(  ) throw(SQLException, RuntimeException)
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx
index fe1449b..66e6d4b 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.hxx
@@ -45,9 +45,6 @@ namespace connectivity
     namespace skeleton
     {
 
-        //************ Class: ODatabaseMetaData
-
-
         typedef ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XDatabaseMetaData> ODatabaseMetaData_BASE;
 
         class ODatabaseMetaData : public ODatabaseMetaData_BASE
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
index 8cf2944..a1950a4 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
@@ -86,8 +86,8 @@ rtl::OUString SkeletonDriver::getImplementationName_Static(  ) throw(RuntimeExce
 
 Sequence< ::rtl::OUString > SkeletonDriver::getSupportedServiceNames_Static(  ) throw (RuntimeException)
 {
-    // which service is supported
-    // for more information @see com.sun.star.sdbc.Driver
+    /// which service is supported
+    /// for more information @see com.sun.star.sdbc.Driver
     Sequence< ::rtl::OUString > aSNS( 1 );
     aSNS[0] = ::rtl::OUString("com.sun.star.sdbc.Driver");
     return aSNS;
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx
index 7404601..23b2483 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSetMetaData.hxx
@@ -45,8 +45,6 @@ namespace connectivity
     namespace skeleton
     {
 
-        //************ Class: ResultSetMetaData
-
         typedef ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XResultSetMetaData>   OResultSetMetaData_BASE;
 
         class OResultSetMetaData :  public  OResultSetMetaData_BASE
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx
index c014b83..ac63064 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx
@@ -60,10 +60,7 @@ namespace connectivity
                                                     ::com::sun::star::sdbc::XCloseable,
                                                     ::com::sun::star::sdbc::XMultipleResults> OStatement_BASE;
 
-
-        //************ Class: OStatement_Base
-        // is a base class for the normal statement and for the prepared statement
-
+        // A base class for the normal statement and for the prepared statement
         class OStatement_Base       :   public OBase_Mutex,
                                         public  OStatement_BASE,
                                         public  ::cppu::OPropertySetHelper,
diff --git a/odk/examples/OLE/activex/SOComWindowPeer.h b/odk/examples/OLE/activex/SOComWindowPeer.h
index 1a16bf4..cd58571 100644
--- a/odk/examples/OLE/activex/SOComWindowPeer.h
+++ b/odk/examples/OLE/activex/SOComWindowPeer.h
@@ -46,9 +46,6 @@
 
 #include "so_activex.h"
 
-
-// SOComWindowPeer
-
 class SOComWindowPeer :
     public IDispatchImpl<ISOComWindowPeer, &IID_ISOComWindowPeer, &LIBID_SO_ACTIVEXLib>,
     public ISupportErrorInfo,
diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
index 77c3c2b..6e95f202 100644
--- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
+++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx
@@ -33,18 +33,11 @@
  *
  *************************************************************************/
 
-/*****************************************************************************
- *****************************************************************************
- *
- * Simple client application using the UnoUrlResolver service.
- *
- *****************************************************************************
- *****************************************************************************/
+// Simple client application using the UnoUrlResolver service.
 #include <stdio.h>
 #include <wchar.h>
 
 #include <sal/main.h>
-
 #include <cppuhelper/bootstrap.hxx>
 
 #include <osl/file.hxx>
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyListener.h b/odk/examples/cpp/complextoolbarcontrols/MyListener.h
index b76de44..5e22859 100644
--- a/odk/examples/cpp/complextoolbarcontrols/MyListener.h
+++ b/odk/examples/cpp/complextoolbarcontrols/MyListener.h
@@ -29,7 +29,7 @@
 #define MYLISTENER_IMPLEMENTATIONNAME  "vnd.My.impl.NewDocListener"
 #define MYLISTENER_SERVICENAME         "vnd.My.NewDocListener"
 
-/*---------------------------------------------------
+/**
  * Registriert sich in der Office Konfiguration als Job.
  * Dieser wird dann für alle neu geöffneten Dokumente automatisch
  * gerufen. Man bekommt eine Reference auf das geöffnete Dokument
diff --git a/odk/examples/cpp/counter/counter.cxx b/odk/examples/cpp/counter/counter.cxx
index 227092a..86f8d87 100644
--- a/odk/examples/cpp/counter/counter.cxx
+++ b/odk/examples/cpp/counter/counter.cxx
@@ -33,16 +33,12 @@
  *
  *************************************************************************/
 
-/*************************************************************************
- *************************************************************************
- *
+/*
  * service implementation:   foo.Counter
  * exported interfaces:      foo.XCounter
  *
  * simple example component implementing a counter
- *
- *************************************************************************
- *************************************************************************/
+ */
 
 #include <stdio.h>
 #include <rtl/ustring.hxx>
@@ -147,11 +143,6 @@ Reference< XInterface > SAL_CALL MyCounterImpl_create(
     return Reference<XInterface>(static_cast<XCountable*>(new MyCounterImpl(xMgr)));
 }
 
-
-
-//#### EXPORTED ###########################################################
-
-
 /**
  * This function is called to get service factories for an implementation.
  *
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx
index 2c510d9..f917a4f 100644
--- a/odk/examples/cpp/counter/countermain.cxx
+++ b/odk/examples/cpp/counter/countermain.cxx
@@ -33,14 +33,7 @@
  *
  *************************************************************************/
 
-/*************************************************************************
- *************************************************************************
- *
- * simple client application registering and using the counter component.
- *
- *************************************************************************
- *************************************************************************/
-
+// simple client application registering and using the counter component.
 #include "sal/config.h"
 
 #include <cstdlib>
diff --git a/odk/examples/cpp/custompanel/ctp_factory.cxx b/odk/examples/cpp/custompanel/ctp_factory.cxx
index 1fdf4a5..f6723f5 100644
--- a/odk/examples/cpp/custompanel/ctp_factory.cxx
+++ b/odk/examples/cpp/custompanel/ctp_factory.cxx
@@ -48,10 +48,6 @@ namespace sd { namespace colortoolpanel
     using ::com::sun::star::container::NoSuchElementException;
     using ::com::sun::star::awt::XWindow;
 
-
-    //= ToolPanelFactory
-
-
     ToolPanelFactory::ToolPanelFactory( const Reference< XComponentContext >& i_rContext )
         :m_xContext( i_rContext )
     {
diff --git a/odk/examples/cpp/custompanel/ctp_factory.hxx b/odk/examples/cpp/custompanel/ctp_factory.hxx
index de7be54..a3aa5dd 100644
--- a/odk/examples/cpp/custompanel/ctp_factory.hxx
+++ b/odk/examples/cpp/custompanel/ctp_factory.hxx
@@ -31,10 +31,6 @@
 namespace sd { namespace colortoolpanel
 {
 
-
-
-    //= ToolPanelFactory
-
     typedef ::cppu::WeakImplHelper2 <   ::com::sun::star::ui::XUIElementFactory
                                     ,   ::com::sun::star::lang::XServiceInfo
                                     >   ToolPanelFactory_Base;
diff --git a/odk/examples/cpp/custompanel/ctp_panel.cxx b/odk/examples/cpp/custompanel/ctp_panel.cxx
index 78b6863..aa1b4ef 100644
--- a/odk/examples/cpp/custompanel/ctp_panel.cxx
+++ b/odk/examples/cpp/custompanel/ctp_panel.cxx
@@ -98,9 +98,6 @@ namespace sd { namespace colortoolpanel
         }
     }
 
-    //= class SingleColorPanel
-
-
     SingleColorPanel::SingleColorPanel( const Reference< XComponentContext >& i_rContext, const Reference< XWindow >& i_rParentWindow, const ::sal_Int32 i_nPanelColor )
         :SingleColorPanel_Base( m_aMutex )
         ,m_xWindow()
@@ -195,10 +192,6 @@ namespace sd { namespace colortoolpanel
         m_xWindow.clear();
     }
 
-
-    //= PanelUIElement
-
-
     PanelUIElement::PanelUIElement( const Reference< XComponentContext >& i_rContext, const Reference< XWindow >& i_rParentWindow,
         const OUString& i_rResourceURL, const ::sal_Int32 i_nPanelColor )
         :PanelUIElement_Base( m_aMutex )
diff --git a/odk/examples/cpp/custompanel/ctp_panel.hxx b/odk/examples/cpp/custompanel/ctp_panel.hxx
index 5428496..098faba 100644
--- a/odk/examples/cpp/custompanel/ctp_panel.hxx
+++ b/odk/examples/cpp/custompanel/ctp_panel.hxx
@@ -35,10 +35,6 @@
 namespace sd { namespace colortoolpanel
 {
 
-
-
-    //= SingleColorPanel
-
     typedef ::cppu::WeakComponentImplHelper2    <   ::com::sun::star::ui::XToolPanel
                                                 ,   ::com::sun::star::awt::XPaintListener
                                                 >   SingleColorPanel_Base;
@@ -73,9 +69,6 @@ namespace sd { namespace colortoolpanel
         const sal_Int32                                                     m_nPanelColor;
     };
 
-
-    //= PanelUIElement
-
     typedef ::cppu::WeakComponentImplHelper1    <   ::com::sun::star::ui::XUIElement
                                                 >   PanelUIElement_Base;
     class PanelUIElement    :public ::cppu::BaseMutex


More information about the Libreoffice-commits mailing list