mirror of
https://github.com/mappu/miqt.git
synced 2025-01-07 16:18:38 +00:00
genbindings: enums by reference also need c-style cast
This commit is contained in:
parent
eb23d0e1fa
commit
5b25ae9cad
@ -300,7 +300,8 @@ func emitCABI2CppForwarding(p CppParameter, indent string) (preamble string, for
|
||||
p.GetQtCppType().ParameterType == "qintptr" ||
|
||||
p.GetQtCppType().ParameterType == "qsizetype" || // Qt 6 qversionnumber.h: invalid ‘static_cast’ from type ‘ptrdiff_t*’ {aka ‘long int*’} to type ‘qsizetype*’ {aka ‘long long int*’}
|
||||
p.ParameterType == "qint8" ||
|
||||
(p.IsFlagType() && p.ByRef) {
|
||||
(p.IsFlagType() && p.ByRef) ||
|
||||
(p.IsKnownEnum() && p.ByRef) {
|
||||
// QDataStream::operator>>() by reference (qint64)
|
||||
// QLockFile::getLockInfo() by pointer
|
||||
// QTextStream::operator>>() by reference (qlonglong + qulonglong)
|
||||
|
Loading…
Reference in New Issue
Block a user