diff --git a/client/QPCSC.cpp b/client/QPCSC.cpp index 97830c63..cc8c1204 100644 --- a/client/QPCSC.cpp +++ b/client/QPCSC.cpp @@ -59,7 +59,7 @@ static QStringList stateToString(DWORD state) } template -static auto SCCall(const char *file, int line, const char *function, Args... args) +constexpr auto SCCall(const char *file, int line, const char *function, Args... args) { auto err = Func(args...); if(SCard().isDebugEnabled()) diff --git a/client/QPCSC.h b/client/QPCSC.h index 20a6fc63..317e862d 100644 --- a/client/QPCSC.h +++ b/client/QPCSC.h @@ -61,7 +61,7 @@ class QPCSCReader final: public QObject constexpr operator bool() const { return SW == 0x9000; } }; - enum Properties { + enum Properties : quint8 { wLcdLayout = 0x01, bEntryValidationCondition = 0x02, bTimeOut2 = 0x03,