Skip to content

Commit

Permalink
Fix: Q_DECL_DEPRECATED_X was not in QT 5.2 yet, replace with Q_DECL_D…
Browse files Browse the repository at this point in the history
…EPRECATED
  • Loading branch information
a-sum-duma committed Jul 26, 2022
1 parent 6a22e90 commit 54754a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libqnapi/src/config/generalconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class GeneralConfig {
* @deprecated Since X.X.X. Will be removed in X.X.X.
* Use constructor that accepts #LangCodeType.
*/
Q_DECL_DEPRECATED_X("use constructor that accepts LangCodeType")
Q_DECL_DEPRECATED
GeneralConfig(const QString& uiLanguage, const QString& p7zipPath,
const QString& tmpPath, const QString& language,
const QString& backupLanguage, const bool& noBackup,
Expand Down
4 changes: 2 additions & 2 deletions libqnapi/src/qnapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ class QNapi {
* @deprecated Since X.X.X. Will be removed in X.X.X.
* Use selectSubtitlesByIdx(i) + download().
*/
Q_DECL_DEPRECATED_X("use selectSubtitlesByIdx(i) + download()")
Q_DECL_DEPRECATED
bool download(int i) { return selectSubtitlesByIdx(i), download(); }

/* TODO: Fill in versions. */
/**
* @deprecated Since X.X.X. Will be removed in X.X.X.
* Use unpack().
*/
Q_DECL_DEPRECATED_X("use unpack()")
Q_DECL_DEPRECATED
bool unpack(int) { return unpack(); };

void cleanup();
Expand Down
2 changes: 1 addition & 1 deletion libqnapi/src/subtitlematcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SubtitleMatcher : public QObject {
* @deprecated Since X.X.X. Will be removed in X.X.X.
* Use constructor that accepts #LangCodeType.
*/
Q_DECL_DEPRECATED_X("use constructor that accepts LangCodeType")
Q_DECL_DEPRECATED
SubtitleMatcher(bool _noBackup, bool _isPostProcessingEnabled,
QString _ppSubFormat, QString _ppSubExtension,
bool _changePermissions, QString _changePermissionsTo,
Expand Down

0 comments on commit 54754a2

Please sign in to comment.