Kaydet (Commit) 0e3cec6b authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Petr Mladek

rhbz#954991 Avoid static data (causing trouble at exit)

(cherry picked from commit aa1aedb2)
Conflicts:
	vcl/inc/unx/salinst.h
	vcl/unx/generic/dtrans/X11_service.cxx

Change-Id: Ifc8275276811ba24b62f93096e7cb98a5dbf658c
Reviewed-on: https://gerrit.libreoffice.org/3556Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 6fb16fba
...@@ -27,11 +27,21 @@ ...@@ -27,11 +27,21 @@
#include <vcl/solarmutex.hxx> #include <vcl/solarmutex.hxx>
#include "generic/geninst.h" #include "generic/geninst.h"
#include <tools/prex.h>
#include <X11/Xlib.h>
#include <tools/postx.h>
namespace com { namespace sun { namespace star { namespace datatransfer {
namespace clipboard { class XClipboard; }
} } } }
// -=-= SalInstanceData =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // -=-= SalInstanceData =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
class SalXLib; class SalXLib;
class VCLPLUG_GEN_PUBLIC X11SalInstance : public SalGenericInstance class VCLPLUG_GEN_PUBLIC X11SalInstance : public SalGenericInstance
{ {
private:
boost::unordered_map< OUString, boost::unordered_map< Atom, com::sun::star::uno::Reference< com::sun::star::datatransfer::clipboard::XClipboard > >, OUStringHash > m_aInstances;
protected: protected:
SalXLib *mpXLib; SalXLib *mpXLib;
public: public:
......
...@@ -62,8 +62,6 @@ Sequence< OUString > SAL_CALL x11::Xdnd_dropTarget_getSupportedServiceNames() ...@@ -62,8 +62,6 @@ Sequence< OUString > SAL_CALL x11::Xdnd_dropTarget_getSupportedServiceNames()
css::uno::Reference< XInterface > X11SalInstance::CreateClipboard( const Sequence< Any >& arguments ) css::uno::Reference< XInterface > X11SalInstance::CreateClipboard( const Sequence< Any >& arguments )
{ {
static boost::unordered_map< OUString, ::boost::unordered_map< Atom, Reference< XClipboard > >, ::rtl::OUStringHash > m_aInstances;
OUString aDisplayName; OUString aDisplayName;
Atom nSelection; Atom nSelection;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment