Browse Source

Fix build with old Qt

Signed-off-by: falkTX <falktx@falktx.com>
fix-audiofile-buffering
falkTX 1 year ago
parent
commit
9b0ca4ecb3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      source/frontend/utils/qcarlastring.hpp

+ 4
- 4
source/frontend/utils/qcarlastring.hpp View File

@@ -50,7 +50,7 @@ public:
: QString(fromUtf8(str)) {}

#if QT_VERSION < 0x60000
explicit inline QCarlaString(const QChar* const str, const qsizetype size)
explicit inline QCarlaString(const QChar* const str, const size_t size)
: QString(str, size) {}
#endif

@@ -73,7 +73,7 @@ public:
}

#if QT_VERSION < 0x60000
inline QCarlaString sliced(const qsizetype pos) const
inline QCarlaString sliced(const size_t pos) const
{
return QCarlaString(data() + pos, size() - pos);
}
@@ -89,14 +89,14 @@ public:
explicit inline QCarlaByteArray()
: QByteArray() {}

explicit inline QCarlaByteArray(const char* const data, const qsizetype size)
explicit inline QCarlaByteArray(const char* const data, const size_t size)
: QByteArray(data, size) {}

inline QCarlaByteArray(const QByteArray& b)
: QByteArray(b) {}

#if QT_VERSION < 0x60000
inline QCarlaByteArray sliced(const qsizetype pos) const
inline QCarlaByteArray sliced(const size_t pos) const
{
return QCarlaByteArray(data() + pos, size() - pos);
}


Loading…
Cancel
Save