summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-01 16:05:15 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-03 19:41:34 +0100
commit868cd2461580d362c847846f6bb52a381b282b6f (patch)
tree6079519944dc9438fe070f08db7056ff640237b7 /connectivity
parent3a5fa58344399f9de5d20fe0b1ed82b074fb5eba (diff)
Remove outdated/useless comments. (firebird-sdbc)
Change-Id: Iab163debab1513369b75183efdaa3c03f7193a70
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/Driver.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx
index 729dc2bb21f4..5e9f04ba416e 100644
--- a/connectivity/source/drivers/firebird/Driver.cxx
+++ b/connectivity/source/drivers/firebird/Driver.cxx
@@ -76,7 +76,6 @@ void FirebirdDriver::disposing()
{
MutexGuard aGuard(m_aMutex);
- // when driver will be destroied so all our connections have to be destroied as well
for (OWeakRefArray::iterator i = m_xConnections.begin(); m_xConnections.end() != i; ++i)
{
Reference< XComponent > xComp(i->get(), UNO_QUERY);
@@ -99,7 +98,6 @@ rtl::OUString FirebirdDriver::getImplementationName_Static() throw(RuntimeExcept
Sequence< OUString > FirebirdDriver::getSupportedServiceNames_Static() throw (RuntimeException)
{
- // TODO: add com.sun.star.sdbcx.Driver once all sdbc functionality is implemented
Sequence< OUString > aSNS( 2 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = OUString("com.sun.star.sdbcx.Driver");
@@ -143,12 +141,11 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect(
throw DisposedException();
if ( ! acceptsURL(url) )
- return NULL; // TODO: throw Exception?
+ return NULL;
- // create a new connection with the given properties and append it to our vector
OConnection* pCon = new OConnection(this);
- Reference< XConnection > xCon = pCon; // important here because otherwise the connection could be deleted inside (refcount goes -> 0)
- pCon->construct(url,info); // late constructor call which can throw exception and allows a correct dtor call when so
+ Reference< XConnection > xCon = pCon;
+ pCon->construct(url, info);
m_xConnections.push_back(WeakReferenceHelper(*pCon));
return xCon;