Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
QString::sprintf
with QString::asprintf
`QString::sprintf` was deprecated in Qt 5.14, so replace uses with the static `QString::asprintf` method. This addresses the following warning: ``` ../source/view/geniedialog.cc:102:17: warning: 'sprintf' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] str.sprintf("%02X", rawcode.getValue()); ^ /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qstring.h:392:5: note: 'sprintf' has been explicitly marked deprecated here QT_DEPRECATED_X("Use asprintf(), arg() or QTextStream instead") ^ /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X' # define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text) ^ /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X' # define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text))) ```
- Loading branch information