delete inlines, trust the compiler

This commit is contained in:
lupoDharkael
2017-08-16 14:34:16 +02:00
parent 4a56f44bb9
commit 6cefead0fc
10 changed files with 15 additions and 15 deletions

View File

@@ -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 *);
};

View File

@@ -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;
};

View File

@@ -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;
};

View File

@@ -80,7 +80,7 @@ private:
// aux methods
void addToRegion(const QVector<QPoint> &points, const side s);
inline void resetRegionTrack();
void resetRegionTrack();
};

View File

@@ -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();
}

View File

@@ -50,7 +50,7 @@ public:
~CaptureWidget();
void updateButtons();
inline QPixmap pixmap();
QPixmap pixmap();
private slots:
void copyScreenshot();

View File

@@ -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

View File

@@ -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,

View File

@@ -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;

View File

@@ -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);