Browse Source

frontend: dont use enums for data that goes into qvariant

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 1 year ago
parent
commit
c4836a8600
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/frontend/pluginlist/pluginlistdialog.cpp

+ 3
- 3
source/frontend/pluginlist/pluginlistdialog.cpp View File

@@ -490,7 +490,7 @@ template <class T> inline T static_cast_void(const void* ptr)
struct PluginInfoBytes {
uint API;
uint build;
CARLA_BACKEND_NAMESPACE::PluginType type;
uint type;
uint hints;
uint64_t uniqueId;
uint audioIns;
@@ -507,8 +507,8 @@ QVariant asVariant(const PluginInfo& plugin)
{
const PluginInfoBytes data = {
plugin.API,
plugin.build,
plugin.type,
static_cast<uint>(plugin.build),
static_cast<uint>(plugin.type),
plugin.hints,
plugin.uniqueId,
plugin.audioIns,


Loading…
Cancel
Save