From 77a70f877c5c52fb7f7ec741e3b099f7582576d3 Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Fri, 5 Jul 2002 06:01:38 +0000 Subject: #99549# move static inside method --- connectivity/source/commontools/TConnection.cxx | 6 +++--- connectivity/source/inc/TConnection.hxx | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/TConnection.cxx b/connectivity/source/commontools/TConnection.cxx index 070747bad9c5..290a4ed54bcd 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 d3c0c9d7950b..0327f6ba2fff 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: -- cgit