Browse Source

clang does not accept constexpr for strlen :(

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/merge
falkTX 3 years ago
parent
commit
1506abf0fc
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/src/DistrhoUILV2.cpp

+ 1
- 1
distrho/src/DistrhoUILV2.cpp View File

@@ -205,7 +205,7 @@ public:
const char* const dpf_lv2_key = fUridUnmap->unmap(fUridUnmap->handle, dpf_lv2_urid);
DISTRHO_SAFE_ASSERT_RETURN(dpf_lv2_key != nullptr,);

constexpr const size_t reqLen = std::strlen(DISTRHO_PLUGIN_URI "#");
/*constexpr*/ const size_t reqLen = std::strlen(DISTRHO_PLUGIN_URI "#");
DISTRHO_SAFE_ASSERT_RETURN(std::strlen(dpf_lv2_key) > reqLen,);

const char* const key = dpf_lv2_key + reqLen;


Loading…
Cancel
Save