summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qt_mac_p.h
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@theqtcompany.com>2015-12-06 22:26:01 -0800
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2015-12-10 14:38:46 +0000
commitf157babbed7be7b18fd6f54f0264290299b1a22a (patch)
treee0ba5b6037455021d35bc1412e745f8a7412a579 /src/plugins/platforms/cocoa/qt_mac_p.h
parent1f2734b82b77fc8a959fdca8f3372cf09f65edd8 (diff)
Move a reusable image conversion function into QCocoaHelpers.
Change-Id: I5fc8f84bd504e405968e212b3125179a2273ae79 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qt_mac_p.h')
-rw-r--r--src/plugins/platforms/cocoa/qt_mac_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qt_mac_p.h b/src/plugins/platforms/cocoa/qt_mac_p.h
index 9bfc0f7ba1..9a20c31720 100644
--- a/src/plugins/platforms/cocoa/qt_mac_p.h
+++ b/src/plugins/platforms/cocoa/qt_mac_p.h
@@ -105,8 +105,8 @@ class QMacCGContext
public:
QMacCGContext(QPainter *p); //qpaintengine_mac.mm
inline QMacCGContext() { context = 0; }
- inline QMacCGContext(const QPaintDevice *pdev) {
- extern CGContextRef qt_mac_cg_context(const QPaintDevice *);
+ inline QMacCGContext(QPaintDevice *pdev) {
+ extern CGContextRef qt_mac_cg_context(QPaintDevice *);
context = qt_mac_cg_context(pdev);
}
inline QMacCGContext(CGContextRef cg, bool takeOwnership=false) {