summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-07-05 06:01:38 +0000
committerOcke Janssen <oj@openoffice.org>2002-07-05 06:01:38 +0000
commitd29e677019a82378e6370e27de10644eec138ca6 (patch)
tree6028fafc7d333cee12e2aa2c51608bbcf3295015 /connectivity/source
parent1aa94130481ae35274e978f053669b6276875cae (diff)
#99549# move static inside method
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/commontools/TConnection.cxx6
-rw-r--r--connectivity/source/inc/TConnection.hxx5
2 files changed, 5 insertions, 6 deletions
diff --git a/connectivity/source/commontools/TConnection.cxx b/connectivity/source/commontools/TConnection.cxx
index 1a008866fe..66059e3542 100644
--- a/connectivity/source/commontools/TConnection.cxx
+++ b/connectivity/source/commontools/TConnection.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TConnection.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2001-08-24 06:02:18 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:00:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,7 +70,6 @@ using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace::osl;
-::dbtools::OPropertyMap OMetaConnection::s_aPropertyNameMap;
//XUnoTunnel
sal_Int64 SAL_CALL OMetaConnection::getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw (::com::sun::star::uno::RuntimeException)
{
@@ -97,6 +96,7 @@ Sequence< sal_Int8 > OMetaConnection::getUnoTunnelImplementationId()
// -----------------------------------------------------------------------------
::dbtools::OPropertyMap& OMetaConnection::getPropMap()
{
+ static ::dbtools::OPropertyMap s_aPropertyNameMap;
return s_aPropertyNameMap;
}
// -----------------------------------------------------------------------------
diff --git a/connectivity/source/inc/TConnection.hxx b/connectivity/source/inc/TConnection.hxx
index 59c68bb8dc..6ac5747449 100644
--- a/connectivity/source/inc/TConnection.hxx
+++ b/connectivity/source/inc/TConnection.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TConnection.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: hr $ $Date: 2001-09-27 13:48:37 $
+ * last change: $Author: oj $ $Date: 2002-07-05 07:01:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -102,7 +102,6 @@ namespace connectivity
{
protected:
::osl::Mutex m_aMutex;
- static ::dbtools::OPropertyMap s_aPropertyNameMap;
rtl_TextEncoding m_nTextEncoding; // the encoding which is used for all text conversions
public: