summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/cupsmgr.hxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-04-02 15:21:38 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-04-02 15:26:53 +1000
commit3e5bca1893f08b9372c1e0ab96a32aabf989acd4 (patch)
tree562812e79ef9a7125ab943d85ab8bd5b63c767a5 /vcl/inc/unx/cupsmgr.hxx
parentda0d59826cfed4e2f31641ef367902fd6e7d63c2 (diff)
vcl: PrinterInfoManager no longer a singletonprivate/tbsdy/printinfomgr
Let's just create the PrinterInfoManager via the SalData constructor. There is no real need to lazy-load this, so the singleton is sort of pointless. This allows more RAII-type behaviour. Change-Id: Id860a40e92eea36b1aeb4da646f1134e8a4d70aa
Diffstat (limited to 'vcl/inc/unx/cupsmgr.hxx')
-rw-r--r--vcl/inc/unx/cupsmgr.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/unx/cupsmgr.hxx b/vcl/inc/unx/cupsmgr.hxx
index 8a7025dd78e3..3d71f5085487 100644
--- a/vcl/inc/unx/cupsmgr.hxx
+++ b/vcl/inc/unx/cupsmgr.hxx
@@ -63,11 +63,11 @@ class CUPSManager : public PrinterInfoManager
CUPSManager();
virtual ~CUPSManager() override;
- virtual void initialize() override;
-
static void getOptionsFromDocumentSetup( const JobData& rJob, bool bBanner, int& rNumOptions, void** rOptions );
void runDests();
OString threadedCupsGetPPD(const char* pPrinter);
+
+ virtual void initialize() override;
public:
static void runDestThread(void* pMgr);