Skip to content

Commit 1c5e374

Browse files
committed
MSVC: Fix Xpressive instrument
1 parent d4f4500 commit 1c5e374

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

plugins/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ IF(MSVC)
9393
LadspaEffect
9494
sid
9595
#VstEffect
96-
Xpressive
9796
zynaddsubfx
9897
)
9998
message(WARNING "Compiling with MSVC. The following plugins are not available: ${MSVC_INCOMPATIBLE_PLUGINS}")

plugins/Xpressive/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WERROR_FLAGS} -fexceptions")
1212

1313
IF(LMMS_BUILD_WIN32 AND NOT MSVC)
1414
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj -Dexprtk_disable_enhanced_features")
15+
ELSEIF(LMMS_BUILD_WIN32 AND MSVC)
16+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
1517
ENDIF()
1618

1719
BUILD_PLUGIN(xpressive

plugins/Xpressive/Xpressive.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,6 @@ void XpressiveView::usrWaveClicked() {
807807
Engine::getSong()->setModified();
808808
}
809809

810-
XpressiveHelpView* XpressiveHelpView::s_instance=0;
811-
812810
QString XpressiveHelpView::s_helpText=
813811
"<b>O1, O2</b> - Two output waves. Panning is controled by PN1 and PN2.<br>"
814812
"<b>W1, W2, W3</b> - Wave samples evaluated by expression. In these samples, t variable ranges [0,1).<br>"
@@ -876,11 +874,6 @@ void XpressiveView::helpClicked() {
876874

877875
}
878876

879-
__attribute__((destructor)) static void module_destroy()
880-
{
881-
XpressiveHelpView::finalize();
882-
}
883-
884877
extern "C" {
885878

886879
// necessary for getting instance out of shared lib

plugins/Xpressive/Xpressive.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,22 +206,16 @@ class XpressiveHelpView: public QTextEdit
206206
public:
207207
static XpressiveHelpView* getInstance()
208208
{
209-
if (!s_instance)
210-
{
211-
s_instance = new XpressiveHelpView();
212-
}
213-
return s_instance;
209+
static XpressiveHelpView instance;
210+
return &instance;
214211
}
215212
static void finalize()
216213
{
217-
if (s_instance) { delete s_instance; }
218214
}
219215

220216
private:
221217
XpressiveHelpView();
222-
static XpressiveHelpView *s_instance;
223218
static QString s_helpText;
224-
225219
};
226220

227221
#endif

0 commit comments

Comments
 (0)