summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-29 14:43:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-29 17:37:31 +0200
commit52b8697a1f6af99061984140ecbca36808ae4a55 (patch)
tree423905bd18653ec3301ffb06833caa0af40ffddd /sot
parent962b6307da5d1248481bf9efa534a7bbd37f3a41 (diff)
rtl::Static -> static local
Change-Id: Ib8d9a24659a37e6b94237d98f030cd2be00bcb39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119665 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/exchange.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index 091dd7a10e13..dde5a31cd8fa 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -212,15 +212,14 @@ struct DataFlavorRepresentation
: public rtl::StaticAggregate<
const DataFlavorRepresentation, ImplFormatArray_Impl > {};
-
typedef std::vector<css::datatransfer::DataFlavor> tDataFlavorList;
-
- struct ImplData : public rtl::Static<tDataFlavorList, ImplData> {};
}
static tDataFlavorList& InitFormats_Impl()
{
- return ImplData::get();
+ static tDataFlavorList gImplData;
+
+ return gImplData;
}
/*************************************************************************