Skip to content

Commit 547ddaf

Browse files
committed
Fix LoadResource calls - use this-> for member function
LoadResource is a member function of the plugin class, not a standalone function. Need to call it as this->LoadResource() from within the plugin constructor.
1 parent daad3b0 commit 547ddaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NeuralAmpModeler/NeuralAmpModeler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ NeuralAmpModeler::NeuralAmpModeler(const InstanceInfo& info)
117117

118118
// Load fonts from memory to avoid CGDataProviderCreateWithURL sandbox issues
119119
// See iPlug2 IGraphicsCoreText.mm line 48 comment about sandbox failures
120-
WDL_TypedBuf<uint8_t> robotoData = LoadResource(ROBOTO_FN, "ttf");
120+
WDL_TypedBuf<uint8_t> robotoData = this->LoadResource(ROBOTO_FN, "ttf");
121121
if (robotoData.GetSize() > 0)
122122
pGraphics->LoadFont("Roboto-Regular", robotoData.Get(), robotoData.GetSize());
123123

124-
WDL_TypedBuf<uint8_t> michromaData = LoadResource(MICHROMA_FN, "ttf");
124+
WDL_TypedBuf<uint8_t> michromaData = this->LoadResource(MICHROMA_FN, "ttf");
125125
if (michromaData.GetSize() > 0)
126126
pGraphics->LoadFont("Michroma-Regular", michromaData.Get(), michromaData.GetSize());
127127

0 commit comments

Comments
 (0)