summaryrefslogtreecommitdiff
path: root/vcl/inc/qt5
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2020-09-17 11:45:45 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2020-09-17 17:16:09 +0200
commit007e6063931bd87d6ce15deb65b9adc823f74ce0 (patch)
tree6455cd45f3fd452b06f3a29d3695cabfa69216a1 /vcl/inc/qt5
parent391f17a5fbcf9cd918efa10321219f87409d2412 (diff)
qt5: Pass QStyleOption by reference instead of pointer
Change-Id: I12c88016740d94d4f2fcf0e1f83658dd2c3922a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102912 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/inc/qt5')
-rw-r--r--vcl/inc/qt5/Qt5Graphics_Controls.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/qt5/Qt5Graphics_Controls.hxx b/vcl/inc/qt5/Qt5Graphics_Controls.hxx
index b9034fd8ea03..515cae7be70b 100644
--- a/vcl/inc/qt5/Qt5Graphics_Controls.hxx
+++ b/vcl/inc/qt5/Qt5Graphics_Controls.hxx
@@ -66,13 +66,13 @@ private:
QStyle::SubControl subControl);
static QRect subElementRect(QStyle::SubElement element, const QStyleOption* option);
- void draw(QStyle::ControlElement element, QStyleOption* option, QImage* image,
+ void draw(QStyle::ControlElement element, QStyleOption& rOption, QImage* image,
const Color& rBackgroundColor, QStyle::State const state = QStyle::State_None,
QRect rect = QRect());
- void draw(QStyle::PrimitiveElement element, QStyleOption* option, QImage* image,
+ void draw(QStyle::PrimitiveElement element, QStyleOption& rOption, QImage* image,
const Color& rBackgroundColor, QStyle::State const state = QStyle::State_None,
QRect rect = QRect());
- void draw(QStyle::ComplexControl element, QStyleOptionComplex* option, QImage* image,
+ void draw(QStyle::ComplexControl element, QStyleOptionComplex& rOption, QImage* image,
const Color& rBackgroundColor, QStyle::State const state = QStyle::State_None);
void drawFrame(QStyle::PrimitiveElement element, QImage* image, const Color& rBackGroundColor,
QStyle::State const& state, bool bClip = true,