Skip to content

Commit e31eb9c

Browse files
committed
Clean up
1 parent f48425f commit e31eb9c

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

Source/Canvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class ObjectsResizer final : public Component
206206
nvgFontSize(nvg, 20.0f);
207207
nvgTextAlign(nvg, NVG_ALIGN_LEFT | NVG_ALIGN_TOP);
208208
nvgFillColor(nvg, nvgRGBA(240, 240, 240, 255));
209-
nvgText(nvg, textPos.x, textPos.y, String("Spacer size: " + String(spacer + 1.0f)).toStdString().c_str(), nullptr);
209+
nvgText(nvg, textPos.x, textPos.y, String("Spacer size: " + String(spacer + 1.0f)).toRawUTF8(), nullptr);
210210
#endif
211211
}
212212

Source/Objects/SymbolAtomObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class SymbolAtomObject final : public ObjectBase
222222
}
223223
}
224224
} else if (key.getKeyCode() == KeyPress::returnKey) {
225-
setSymbol(input.getText(true).toStdString());
225+
setSymbol(input.getText(true));
226226
cnv->grabKeyboardFocus();
227227
return true;
228228
}

Source/Utility/MidiDeviceManager.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -396,15 +396,6 @@ class MidiDeviceManager final : public ChangeListener
396396
}
397397
}
398398

399-
void getLastMidiOutputEvents(MidiBuffer& buffer, int const numSamples)
400-
{
401-
for (auto& port : outputPorts) {
402-
if (!port.enabled)
403-
continue;
404-
buffer.addEvents(port.buffer, 0, numSamples, 0);
405-
}
406-
}
407-
408399
private:
409400
void handleIncomingMidiMessage(MidiInput* input, MidiMessage const& message) override
410401
{

0 commit comments

Comments
 (0)