delete inlines, trust the compiler
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
||||
void setScreenshot(const QPixmap &);
|
||||
QPixmap baseScreenshot() const;
|
||||
QPixmap screenshot() const;
|
||||
inline QPixmap croppedScreenshot(const QRect &selection) const;
|
||||
QPixmap croppedScreenshot(const QRect &selection) const;
|
||||
|
||||
QPixmap paintModification(const CaptureModification*);
|
||||
QPixmap paintTemporalModification(const CaptureModification*);
|
||||
@@ -46,7 +46,7 @@ private:
|
||||
QPixmap m_baseScreenshot;
|
||||
QPixmap m_modifiedScreenshot;
|
||||
|
||||
inline void paintInPainter(QPainter &, const CaptureModification *);
|
||||
void paintInPainter(QPainter &, const CaptureModification *);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
void onPressed() override;
|
||||
|
||||
private:
|
||||
inline bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
|
||||
bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
void onPressed() override;
|
||||
|
||||
private:
|
||||
inline bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
|
||||
bool needsAdjustment(const QPoint &p0, const QPoint &p1) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ private:
|
||||
|
||||
// aux methods
|
||||
void addToRegion(const QVector<QPoint> &points, const side s);
|
||||
inline void resetRegionTrack();
|
||||
void resetRegionTrack();
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace {
|
||||
|
||||
const int BUTTON_SIZE = 30;
|
||||
|
||||
inline qreal getColorLuma(const QColor &c) {
|
||||
qreal getColorLuma(const QColor &c) {
|
||||
return 0.30 * c.redF() + 0.59 * c.greenF() + 0.11 * c.blueF();
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
~CaptureWidget();
|
||||
|
||||
void updateButtons();
|
||||
inline QPixmap pixmap();
|
||||
QPixmap pixmap();
|
||||
|
||||
private slots:
|
||||
void copyScreenshot();
|
||||
|
||||
Reference in New Issue
Block a user