summaryrefslogtreecommitdiff
path: root/dbaccess/source/sdbtools
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-08-17 23:43:14 +0200
committerPetr Mladek <pmladek@suse.cz>2013-08-27 16:11:09 +0000
commit2ec606730bc95b58390a609df0a88958869a4066 (patch)
tree9c530b3f6b200305ba224dda2d02c9bf5aca2233 /dbaccess/source/sdbtools
parent434f3c8e7fac0644cfe1d7a15f97f0c267bac048 (diff)
fdo#62475 removed pointless comments
Conflicts: dbaccess/source/filter/xml/xmlfilter.cxx dbaccess/source/ui/dlg/ConnectionPage.cxx dbaccess/source/ui/dlg/detailpages.cxx dbaccess/source/ui/dlg/odbcconfig.cxx dbaccess/source/ui/querydesign/querycontroller.cxx Change-Id: I3a05649efa3a43dd8d8fb069fc1bce14ca0a6338 Reviewed-on: https://gerrit.libreoffice.org/5484 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'dbaccess/source/sdbtools')
-rw-r--r--dbaccess/source/sdbtools/connection/connectiondependent.hxx13
-rw-r--r--dbaccess/source/sdbtools/connection/connectiontools.cxx23
-rw-r--r--dbaccess/source/sdbtools/connection/connectiontools.hxx8
-rw-r--r--dbaccess/source/sdbtools/connection/datasourcemetadata.cxx16
-rw-r--r--dbaccess/source/sdbtools/connection/datasourcemetadata.hxx9
-rw-r--r--dbaccess/source/sdbtools/connection/objectnames.cxx47
-rw-r--r--dbaccess/source/sdbtools/connection/objectnames.hxx8
-rw-r--r--dbaccess/source/sdbtools/connection/tablename.cxx27
-rw-r--r--dbaccess/source/sdbtools/connection/tablename.hxx8
-rw-r--r--dbaccess/source/sdbtools/inc/module_sdbt.hxx4
-rw-r--r--dbaccess/source/sdbtools/misc/module_sdbt.cxx5
-rw-r--r--dbaccess/source/sdbtools/misc/sdbt_services.cxx4
12 files changed, 19 insertions, 153 deletions
diff --git a/dbaccess/source/sdbtools/connection/connectiondependent.hxx b/dbaccess/source/sdbtools/connection/connectiondependent.hxx
index 4533520095d4..668b61c23933 100644
--- a/dbaccess/source/sdbtools/connection/connectiondependent.hxx
+++ b/dbaccess/source/sdbtools/connection/connectiondependent.hxx
@@ -27,14 +27,10 @@
#include <cppuhelper/weakref.hxx>
#include <osl/mutex.hxx>
-//........................................................................
namespace sdbtools
{
-//........................................................................
- //====================================================================
- //= ConnectionDependentComponent
- //====================================================================
+ // ConnectionDependentComponent
class ConnectionDependentComponent
{
private:
@@ -103,9 +99,7 @@ namespace sdbtools
}
};
- //====================================================================
- //= ConnectionDependentComponent::EntryGuard
- //====================================================================
+ // ConnectionDependentComponent::EntryGuard
/** a class for guarding methods of a connection-dependent component
This class serves multiple purposes:
@@ -137,10 +131,7 @@ namespace sdbtools
}
};
-
-//........................................................................
} // namespace sdbtools
-//........................................................................
#endif // DBACCESS_CONNECTION_DEPENDENT_HXX
diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx
index 868ee3c8b375..cc89afb70436 100644
--- a/dbaccess/source/sdbtools/connection/connectiontools.cxx
+++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx
@@ -33,10 +33,8 @@ extern "C" void SAL_CALL createRegistryInfo_ConnectionTools()
::sdbtools::OAutoRegistration< ::sdbtools::ConnectionTools > aRegistration;
}
-//........................................................................
namespace sdbtools
{
-//........................................................................
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -53,41 +51,33 @@ namespace sdbtools
using ::com::sun::star::lang::IllegalArgumentException;
using ::com::sun::star::uno::XComponentContext;
- //====================================================================
- //= ConnectionTools
- //====================================================================
- //--------------------------------------------------------------------
+ // ConnectionTools
ConnectionTools::ConnectionTools( const Reference<XComponentContext>& _rContext )
:ConnectionDependentComponent( _rContext )
{
}
- //--------------------------------------------------------------------
ConnectionTools::~ConnectionTools()
{
}
- //--------------------------------------------------------------------
Reference< XTableName > SAL_CALL ConnectionTools::createTableName() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return new TableName( getContext(), getConnection() );
}
- //--------------------------------------------------------------------
Reference< XObjectNames > SAL_CALL ConnectionTools::getObjectNames() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return new ObjectNames( getContext(), getConnection() );
}
- //--------------------------------------------------------------------
Reference< XDataSourceMetaData > SAL_CALL ConnectionTools::getDataSourceMetaData() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return new DataSourceMetaData( getContext(), getConnection() );
}
- //--------------------------------------------------------------------
Reference< container::XNameAccess > SAL_CALL ConnectionTools::getFieldsByCommandDescriptor( ::sal_Int32 commandType, const OUString& command, Reference< lang::XComponent >& keepFieldsAlive ) throw (sdbc::SQLException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -97,7 +87,6 @@ namespace sdbtools
aErrorInfo.doThrow();
return xRet;
}
- //--------------------------------------------------------------------
Reference< sdb::XSingleSelectQueryComposer > SAL_CALL ConnectionTools::getComposer( ::sal_Int32 commandType, const OUString& command ) throw (::com::sun::star::uno::RuntimeException)
{
EntryGuard aGuard( *this );
@@ -106,13 +95,11 @@ namespace sdbtools
return aComposer.getComposer();
}
- //--------------------------------------------------------------------
OUString SAL_CALL ConnectionTools::getImplementationName() throw (RuntimeException)
{
return getImplementationName_static();
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL ConnectionTools::supportsService(const OUString & _ServiceName) throw (RuntimeException)
{
Sequence< OUString > aSupported( getSupportedServiceNames() );
@@ -121,19 +108,16 @@ namespace sdbtools
return ::std::find( begin, end, _ServiceName ) != end;
}
- //--------------------------------------------------------------------
Sequence< OUString > SAL_CALL ConnectionTools::getSupportedServiceNames() throw (RuntimeException)
{
return getSupportedServiceNames_static();
}
- //--------------------------------------------------------------------
OUString SAL_CALL ConnectionTools::getImplementationName_static()
{
return OUString( "com.sun.star.comp.dbaccess.ConnectionTools" );
}
- //--------------------------------------------------------------------
Sequence< OUString > SAL_CALL ConnectionTools::getSupportedServiceNames_static()
{
Sequence< OUString > aSupported( 1 );
@@ -141,13 +125,11 @@ namespace sdbtools
return aSupported;
}
- //--------------------------------------------------------------------
Reference< XInterface > SAL_CALL ConnectionTools::Create(const Reference< XComponentContext >& _rxContext )
{
return *( new ConnectionTools( Reference<XComponentContext>( _rxContext ) ) );
}
- //--------------------------------------------------------------------
void SAL_CALL ConnectionTools::initialize(const Sequence< Any > & _rArguments) throw (RuntimeException, Exception)
{
::osl::MutexGuard aGuard( getMutex() );
@@ -167,9 +149,6 @@ namespace sdbtools
setWeakConnection( xConnection );
}
-
-//........................................................................
} // namespace sdbtools
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/sdbtools/connection/connectiontools.hxx b/dbaccess/source/sdbtools/connection/connectiontools.hxx
index 08d9a82db32b..7d8250e80d25 100644
--- a/dbaccess/source/sdbtools/connection/connectiontools.hxx
+++ b/dbaccess/source/sdbtools/connection/connectiontools.hxx
@@ -31,14 +31,10 @@
#include <cppuhelper/implbase3.hxx>
-//........................................................................
namespace sdbtools
{
-//........................................................................
- //====================================================================
- //= ConnectionTools
- //====================================================================
+ // ConnectionTools
typedef ::cppu::WeakImplHelper3 < ::com::sun::star::sdb::tools::XConnectionTools
, ::com::sun::star::lang::XServiceInfo
, ::com::sun::star::lang::XInitialization
@@ -89,9 +85,7 @@ namespace sdbtools
ConnectionTools& operator=( const ConnectionTools& ); // never implemented
};
-//........................................................................
} // namespace sdbtools
-//........................................................................
#endif // DBACCESS_CONNECTIONTOOLS_HXX
diff --git a/dbaccess/source/sdbtools/connection/datasourcemetadata.cxx b/dbaccess/source/sdbtools/connection/datasourcemetadata.cxx
index 2a68e485a510..b8e1d8a4f8b8 100644
--- a/dbaccess/source/sdbtools/connection/datasourcemetadata.cxx
+++ b/dbaccess/source/sdbtools/connection/datasourcemetadata.cxx
@@ -17,17 +17,14 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "datasourcemetadata.hxx"
#include <com/sun/star/lang/NullPointerException.hpp>
#include <connectivity/dbmetadata.hxx>
-//........................................................................
namespace sdbtools
{
-//........................................................................
using ::com::sun::star::uno::Reference;
using ::com::sun::star::sdbc::XConnection;
@@ -35,17 +32,12 @@ namespace sdbtools
using ::com::sun::star::uno::RuntimeException;
using ::com::sun::star::uno::XComponentContext;
- //====================================================================
- //= DataSourceMetaData_Impl
- //====================================================================
+ // DataSourceMetaData_Impl
struct DataSourceMetaData_Impl
{
};
- //====================================================================
- //= DataSourceMetaData
- //====================================================================
- //--------------------------------------------------------------------
+ // DataSourceMetaData
DataSourceMetaData::DataSourceMetaData( const Reference<XComponentContext>& _rContext, const Reference< XConnection >& _rxConnection )
:ConnectionDependentComponent( _rContext )
,m_pImpl( new DataSourceMetaData_Impl )
@@ -55,12 +47,10 @@ namespace sdbtools
setWeakConnection( _rxConnection );
}
- //--------------------------------------------------------------------
DataSourceMetaData::~DataSourceMetaData()
{
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL DataSourceMetaData::supportsQueriesInFrom( ) throw (RuntimeException)
{
EntryGuard aGuard( *this );
@@ -68,8 +58,6 @@ namespace sdbtools
return aMeta.supportsSubqueriesInFrom();
}
-//........................................................................
} // namespace sdbtools
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/sdbtools/connection/datasourcemetadata.hxx b/dbaccess/source/sdbtools/connection/datasourcemetadata.hxx
index fda74aa478b1..53fb07e0da93 100644
--- a/dbaccess/source/sdbtools/connection/datasourcemetadata.hxx
+++ b/dbaccess/source/sdbtools/connection/datasourcemetadata.hxx
@@ -28,14 +28,10 @@
#include <memory>
-//........................................................................
namespace sdbtools
{
-//........................................................................
- //====================================================================
- //= DataSourceMetaData
- //====================================================================
+ // DataSourceMetaData
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::sdb::tools::XDataSourceMetaData
> DataSourceMetaData_Base;
struct DataSourceMetaData_Impl;
@@ -73,10 +69,7 @@ namespace sdbtools
DataSourceMetaData& operator=( const DataSourceMetaData& ); // never implemented
};
-
-//........................................................................
} // namespace sdbtools
-//........................................................................
#endif // DBACCESS_DATASOURCEMETADATA_HXX
diff --git a/dbaccess/source/sdbtools/connection/objectnames.cxx b/dbaccess/source/sdbtools/connection/objectnames.cxx
index 2f3318c3903d..39f4ffa5dc88 100644
--- a/dbaccess/source/sdbtools/connection/objectnames.cxx
+++ b/dbaccess/source/sdbtools/connection/objectnames.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "objectnames.hxx"
#include "module_sdbt.hxx"
@@ -38,10 +37,8 @@
#include <boost/shared_ptr.hpp>
-//........................................................................
namespace sdbtools
{
-//........................................................................
using ::com::sun::star::uno::Reference;
using ::com::sun::star::sdbc::XConnection;
@@ -63,9 +60,7 @@ namespace sdbtools
namespace CommandType = ::com::sun::star::sdb::CommandType;
namespace ErrorCondition = ::com::sun::star::sdb::ErrorCondition;
- //====================================================================
- //= INameValidation
- //====================================================================
+ // INameValidation
class INameValidation
{
public:
@@ -76,9 +71,7 @@ namespace sdbtools
};
typedef ::boost::shared_ptr< INameValidation > PNameValidation;
- //====================================================================
- //= PlainExistenceCheck
- //====================================================================
+ // PlainExistenceCheck
class PlainExistenceCheck : public INameValidation
{
private:
@@ -120,9 +113,7 @@ namespace sdbtools
}
};
- //====================================================================
- //= TableValidityCheck
- //====================================================================
+ // TableValidityCheck
class TableValidityCheck : public INameValidation
{
const Reference<XComponentContext> m_aContext;
@@ -165,9 +156,7 @@ namespace sdbtools
}
};
- //====================================================================
- //= QueryValidityCheck
- //====================================================================
+ // QueryValidityCheck
class QueryValidityCheck : public INameValidation
{
const Reference<XComponentContext> m_aContext;
@@ -215,9 +204,7 @@ namespace sdbtools
}
};
- //====================================================================
- //= CombinedNameCheck
- //====================================================================
+ // CombinedNameCheck
class CombinedNameCheck : public INameValidation
{
private:
@@ -245,9 +232,7 @@ namespace sdbtools
}
};
- //====================================================================
- //= NameCheckFactory
- //====================================================================
+ // NameCheckFactory
class NameCheckFactory
{
public:
@@ -304,7 +289,6 @@ namespace sdbtools
static void verifyCommandType( sal_Int32 _nCommandType );
};
- //--------------------------------------------------------------------
void NameCheckFactory::verifyCommandType( sal_Int32 _nCommandType )
{
if ( ( _nCommandType != CommandType::TABLE )
@@ -317,7 +301,6 @@ namespace sdbtools
);
}
- //--------------------------------------------------------------------
PNameValidation NameCheckFactory::createExistenceCheck( const Reference<XComponentContext>& _rContext, sal_Int32 _nCommandType, const Reference< XConnection >& _rxConnection )
{
verifyCommandType( _nCommandType );
@@ -354,7 +337,6 @@ namespace sdbtools
return pReturn;
}
- //--------------------------------------------------------------------
PNameValidation NameCheckFactory::createValidityCheck( const Reference<XComponentContext>& _rContext, sal_Int32 _nCommandType, const Reference< XConnection >& _rxConnection )
{
verifyCommandType( _nCommandType );
@@ -378,18 +360,13 @@ namespace sdbtools
return PNameValidation( new QueryValidityCheck( _rContext, _rxConnection ) );
}
- //====================================================================
- //= ObjectNames_Impl
- //====================================================================
+ // ObjectNames_Impl
struct ObjectNames_Impl
{
SdbtClient m_aModuleClient; // keep the module alive as long as this instance lives
};
- //====================================================================
- //= ObjectNames
- //====================================================================
- //--------------------------------------------------------------------
+ // ObjectNames
ObjectNames::ObjectNames( const Reference<XComponentContext>& _rContext, const Reference< XConnection >& _rxConnection )
:ConnectionDependentComponent( _rContext )
,m_pImpl( new ObjectNames_Impl )
@@ -399,12 +376,10 @@ namespace sdbtools
setWeakConnection( _rxConnection );
}
- //--------------------------------------------------------------------
ObjectNames::~ObjectNames()
{
}
- //--------------------------------------------------------------------
OUString SAL_CALL ObjectNames::suggestName( ::sal_Int32 _CommandType, const OUString& _BaseName ) throw (IllegalArgumentException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -434,7 +409,6 @@ namespace sdbtools
return sName;
}
- //--------------------------------------------------------------------
OUString SAL_CALL ObjectNames::convertToSQLName( const OUString& Name ) throw (RuntimeException)
{
EntryGuard aGuard( *this );
@@ -442,7 +416,6 @@ namespace sdbtools
return ::dbtools::convertName2SQLName( Name, xMeta->getExtraNameCharacters() );
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL ObjectNames::isNameUsed( ::sal_Int32 _CommandType, const OUString& _Name ) throw (IllegalArgumentException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -451,7 +424,6 @@ namespace sdbtools
return !pNameCheck->validateName( _Name );
}
- //--------------------------------------------------------------------
::sal_Bool SAL_CALL ObjectNames::isNameValid( ::sal_Int32 _CommandType, const OUString& _Name ) throw (IllegalArgumentException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -460,7 +432,6 @@ namespace sdbtools
return pNameCheck->validateName( _Name );
}
- //--------------------------------------------------------------------
void SAL_CALL ObjectNames::checkNameForCreate( ::sal_Int32 _CommandType, const OUString& _Name ) throw (SQLException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -472,8 +443,6 @@ namespace sdbtools
pNameCheck->validateName_throw( _Name );
}
-//........................................................................
} // namespace sdbtools
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/sdbtools/connection/objectnames.hxx b/dbaccess/source/sdbtools/connection/objectnames.hxx
index f05a417d796e..a696ba467090 100644
--- a/dbaccess/source/sdbtools/connection/objectnames.hxx
+++ b/dbaccess/source/sdbtools/connection/objectnames.hxx
@@ -28,14 +28,10 @@
#include <memory>
-//........................................................................
namespace sdbtools
{
-//........................................................................
- //====================================================================
- //= ObjectNames
- //====================================================================
+ // ObjectNames
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::sdb::tools::XObjectNames
> ObjectNames_Base;
struct ObjectNames_Impl;
@@ -79,9 +75,7 @@ namespace sdbtools
ObjectNames& operator=( const ObjectNames& ); // never implemented
};
-//........................................................................
} // namespace sdbtools
-//........................................................................
#endif // DBACCESS_SOURCE_SDBTOOLS_INC_OBJECTNAMES_HXX
diff --git a/dbaccess/source/sdbtools/connection/tablename.cxx b/dbaccess/source/sdbtools/connection/tablename.cxx
index 1b640cb2e18a..96ca135c4404 100644
--- a/dbaccess/source/sdbtools/connection/tablename.cxx
+++ b/dbaccess/source/sdbtools/connection/tablename.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "tablename.hxx"
#include "sdbt_resource.hrc"
#include "module_sdbt.hxx"
@@ -31,10 +30,8 @@
#include <tools/diagnose_ex.h>
#include <tools/string.hxx>
-//........................................................................
namespace sdbtools
{
-//........................................................................
using ::com::sun::star::uno::Reference;
using ::com::sun::star::sdbc::XConnection;
@@ -56,9 +53,7 @@ namespace sdbtools
using namespace ::dbtools;
- //====================================================================
- //= TableName
- //====================================================================
+ // TableName
struct TableName_Impl
{
SdbtClient m_aModuleClient; // keep the module alive as long as this instance lives
@@ -68,10 +63,7 @@ namespace sdbtools
OUString sName;
};
- //====================================================================
- //= TableName
- //====================================================================
- //--------------------------------------------------------------------
+ // TableName
TableName::TableName( const Reference<XComponentContext>& _rContext, const Reference< XConnection >& _rxConnection )
:ConnectionDependentComponent( _rContext )
,m_pImpl( new TableName_Impl )
@@ -82,61 +74,52 @@ namespace sdbtools
setWeakConnection( _rxConnection );
}
- //--------------------------------------------------------------------
TableName::~TableName()
{
}
- //--------------------------------------------------------------------
OUString SAL_CALL TableName::getCatalogName() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return m_pImpl->sCatalog;
}
- //--------------------------------------------------------------------
void SAL_CALL TableName::setCatalogName( const OUString& _catalogName ) throw (RuntimeException)
{
EntryGuard aGuard( *this );
m_pImpl->sCatalog = _catalogName;
}
- //--------------------------------------------------------------------
OUString SAL_CALL TableName::getSchemaName() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return m_pImpl->sSchema;
}
- //--------------------------------------------------------------------
void SAL_CALL TableName::setSchemaName( const OUString& _schemaName ) throw (RuntimeException)
{
EntryGuard aGuard( *this );
m_pImpl->sSchema = _schemaName;
}
- //--------------------------------------------------------------------
OUString SAL_CALL TableName::getTableName() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return m_pImpl->sName;
}
- //--------------------------------------------------------------------
void SAL_CALL TableName::setTableName( const OUString& _tableName ) throw (RuntimeException)
{
EntryGuard aGuard( *this );
m_pImpl->sName = _tableName;
}
- //--------------------------------------------------------------------
OUString SAL_CALL TableName::getNameForSelect() throw (RuntimeException)
{
EntryGuard aGuard( *this );
return composeTableNameForSelect( getConnection(), m_pImpl->sCatalog, m_pImpl->sSchema, m_pImpl->sName );
}
- //--------------------------------------------------------------------
Reference< XPropertySet > SAL_CALL TableName::getTable() throw (NoSuchElementException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -164,7 +147,6 @@ namespace sdbtools
return xTable;
}
- //--------------------------------------------------------------------
void SAL_CALL TableName::setTable( const Reference< XPropertySet >& _table ) throw (IllegalArgumentException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -194,7 +176,6 @@ namespace sdbtools
}
}
- //--------------------------------------------------------------------
namespace
{
/** translates a CompositionType into a EComposeRule
@@ -233,7 +214,6 @@ namespace sdbtools
}
}
- //--------------------------------------------------------------------
OUString SAL_CALL TableName::getComposedName( ::sal_Int32 _Type, ::sal_Bool _Quote ) throw (IllegalArgumentException, RuntimeException)
{
EntryGuard aGuard( *this );
@@ -244,7 +224,6 @@ namespace sdbtools
lcl_translateCompositionType_throw( _Type ) );
}
- //--------------------------------------------------------------------
void SAL_CALL TableName::setComposedName( const OUString& _ComposedName, ::sal_Int32 _Type ) throw (RuntimeException)
{
EntryGuard aGuard( *this );
@@ -256,8 +235,6 @@ namespace sdbtools
lcl_translateCompositionType_throw( _Type ) );
}
-//........................................................................
} // namespace sdbtools
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/sdbtools/connection/tablename.hxx b/dbaccess/source/sdbtools/connection/tablename.hxx
index 653d176b573d..73412de8bf1b 100644
--- a/dbaccess/source/sdbtools/connection/tablename.hxx
+++ b/dbaccess/source/sdbtools/connection/tablename.hxx
@@ -28,14 +28,10 @@
#include <memory>
-//........................................................................
namespace sdbtools
{
-//........................................................................
- //====================================================================
- //= TableName
- //====================================================================
+ // TableName
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::sdb::tools::XTableName
> TableName_Base;
struct TableName_Impl;
@@ -85,9 +81,7 @@ namespace sdbtools
TableName& operator=( const TableName& ); // never implemented
};
-//........................................................................
} // namespace sdbtools
-//........................................................................
#endif // DBACCESS_SOURCE_SDBTOOLS_CONNECTION_TABLENAME_HXX
diff --git a/dbaccess/source/sdbtools/inc/module_sdbt.hxx b/dbaccess/source/sdbtools/inc/module_sdbt.hxx
index 26b1672d5624..8d242032771a 100644
--- a/dbaccess/source/sdbtools/inc/module_sdbt.hxx
+++ b/dbaccess/source/sdbtools/inc/module_sdbt.hxx
@@ -22,16 +22,12 @@
#include <unotools/componentresmodule.hxx>
-//........................................................................
namespace sdbtools
{
-//........................................................................
DEFINE_MODULE( SdbtModule, SdbtClient, SdbtRes )
-//........................................................................
} // namespace sdbtools
-//........................................................................
#endif // DBACCESS_MODULE_SDBT_HXX
diff --git a/dbaccess/source/sdbtools/misc/module_sdbt.cxx b/dbaccess/source/sdbtools/misc/module_sdbt.cxx
index 237a2a92618c..d40ef6b96aff 100644
--- a/dbaccess/source/sdbtools/misc/module_sdbt.cxx
+++ b/dbaccess/source/sdbtools/misc/module_sdbt.cxx
@@ -17,18 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "module_sdbt.hxx"
-//........................................................................
namespace sdbtools
{
-//........................................................................
IMPLEMENT_MODULE( SdbtModule, "sdbt" )
-//........................................................................
} // namespace sdbtools
-//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/sdbtools/misc/sdbt_services.cxx b/dbaccess/source/sdbtools/misc/sdbt_services.cxx
index 60230f39a445..03eba5f12ac6 100644
--- a/dbaccess/source/sdbtools/misc/sdbt_services.cxx
+++ b/dbaccess/source/sdbtools/misc/sdbt_services.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include "module_sdbt.hxx"
using ::com::sun::star::lang::XMultiServiceFactory;
@@ -28,8 +27,6 @@ using ::com::sun::star::uno::XInterface;
extern "C" void SAL_CALL createRegistryInfo_ConnectionTools();
-//---------------------------------------------------------------------------------------
-
extern "C" void SAL_CALL sdbt_initializeModule()
{
static sal_Bool s_bInit = sal_False;
@@ -40,7 +37,6 @@ extern "C" void SAL_CALL sdbt_initializeModule()
}
}
-//---------------------------------------------------------------------------------------
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL sdbt_component_getFactory(
const sal_Char* pImplementationName,
void* pServiceManager,