Browse Source

msvc: set const qualifiers on the declarations

pull/278/head
Jean Pierre Cimalando 4 years ago
parent
commit
f90a0c547b
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      distrho/src/DistrhoUI.cpp
  2. +2
    -2
      distrho/src/DistrhoUIInternal.hpp

+ 2
- 2
distrho/src/DistrhoUI.cpp View File

@@ -40,7 +40,7 @@ Window* d_lastUiWindow = nullptr;
// -----------------------------------------------------------------------------------------------------------

#if DISTRHO_PLUGIN_HAS_EXTERNAL_UI
UI* createUiWrapper(void* dspPtr, uintptr_t winId, double scaleFactor, const char* bundlePath)
UI* createUiWrapper(void* const dspPtr, const uintptr_t winId, const double scaleFactor, const char* const bundlePath)
{
d_lastUiDspPtr = dspPtr;
g_nextWindowId = winId;
@@ -54,7 +54,7 @@ UI* createUiWrapper(void* dspPtr, uintptr_t winId, double scaleFactor, const cha
return ret;
}
#else
UI* createUiWrapper(void* dspPtr, Window* window)
UI* createUiWrapper(void* const dspPtr, Window* const window)
{
d_lastUiDspPtr = dspPtr;
d_lastUiWindow = window;


+ 2
- 2
distrho/src/DistrhoUIInternal.hpp View File

@@ -48,9 +48,9 @@ extern Window* d_lastUiWindow;
// -----------------------------------------------------------------------

#if DISTRHO_PLUGIN_HAS_EXTERNAL_UI
UI* createUiWrapper(void* dspPtr, uintptr_t winId, double scaleFactor, const char* bundlePath);
UI* createUiWrapper(void* const dspPtr, const uintptr_t winId, const double scaleFactor, const char* const bundlePath);
#else // DISTRHO_PLUGIN_HAS_EXTERNAL_UI
UI* createUiWrapper(void* dspPtr, Window* window);
UI* createUiWrapper(void* const dspPtr, Window* const window);
#endif

#if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI


Loading…
Cancel
Save