Skip to content

Commit 5d87dcc

Browse files
committed
Fix compilation issue on Linux
1 parent 5128908 commit 5d87dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GUI/EDVoiceGUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void EDVoiceGUI::beginMainWindow()
163163
// Center title vertically
164164
ImGui::PushFont(NULL, style.FontSizeBase * 1.2f);
165165
ImGui::SetCursorPos(ImVec2(titleMarginLeft, .5f * (_windowSystem->titleBarHeight() - ImGui::GetFontSize())));
166-
ImGui::Text(_windowSystem->windowTitle());
166+
ImGui::Text("%s", _windowSystem->windowTitle());
167167
ImGui::PopFont();
168168

169169
// Minimize & Resize buttons
@@ -458,7 +458,7 @@ void EDVoiceGUI::loadVoicePack(void* userdata, std::string path)
458458

459459
if (!path.empty()) {
460460
try {
461-
std::string& voicepackName = std::filesystem::path(path).stem().string();
461+
const std::string voicepackName = std::filesystem::path(path).stem().string();
462462
size_t idxNewVoicePack = voicepack.addVoicePack(voicepackName, path);
463463
voicepack.loadVoicePackByIndex(idxNewVoicePack);
464464
}

0 commit comments

Comments
 (0)