mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-31 22:30:27 +00:00
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();
|
||||
|
||||
@@ -35,7 +35,7 @@ auto versionOption = CommandOption({"v", "version"},
|
||||
auto helpOption = CommandOption({"h", "help"},
|
||||
"Displays this help");
|
||||
|
||||
inline QStringList addDashToOptionNames(const QStringList &names) {
|
||||
QStringList addDashToOptionNames(const QStringList &names) {
|
||||
QStringList dashedNames;
|
||||
for (const QString &name: names) {
|
||||
// prepend "-" to single character options, and "--" to the others
|
||||
|
||||
@@ -74,15 +74,15 @@ private:
|
||||
QList<CommandArgument> m_foundArgs;
|
||||
|
||||
// helper functions
|
||||
inline void printVersion();
|
||||
void printVersion();
|
||||
void printHelp(QStringList args, const Node *node);
|
||||
Node* findParent(const CommandArgument &parent);
|
||||
Node* recursiveParentSearch(const CommandArgument &parent,
|
||||
Node &node) const;
|
||||
inline bool processIfOptionIsHelp(const QStringList &args,
|
||||
bool processIfOptionIsHelp(const QStringList &args,
|
||||
QStringList::const_iterator &actualIt,
|
||||
Node * &actualNode);
|
||||
inline bool processArgs(const QStringList &args,
|
||||
bool processArgs(const QStringList &args,
|
||||
QStringList::const_iterator &actualIt,
|
||||
Node * &actualNode);
|
||||
bool processOptions(const QStringList &args,
|
||||
|
||||
@@ -31,8 +31,8 @@ protected:
|
||||
void keyPressEvent(QKeyEvent *);
|
||||
|
||||
private:
|
||||
inline void initInfoTable();
|
||||
inline void initLabels();
|
||||
void initInfoTable();
|
||||
void initLabels();
|
||||
QVBoxLayout *m_layout;
|
||||
|
||||
static QVector<const char *> m_keys;
|
||||
|
||||
@@ -39,8 +39,8 @@ public slots:
|
||||
|
||||
private:
|
||||
//using charArr = char[MAX_CHARACTERS];
|
||||
inline QString charArrToQString(const char *c);
|
||||
inline char * QStringTocharArr(const QString &s);
|
||||
QString charArrToQString(const char *c);
|
||||
char * QStringTocharArr(const QString &s);
|
||||
|
||||
void fixPath(QString &directory, QString &filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user