Skip to content

Commit ff23d7e

Browse files
fix warnings
1 parent f541328 commit ff23d7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/libcorrect/src/convolutional/history_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ uint8_t *history_buffer_get_slice(history_buffer *buf) { return buf->history[buf
4545

4646
shift_register_t history_buffer_search(history_buffer *buf, const distance_t *distances,
4747
unsigned int search_every) {
48-
shift_register_t bestpath;
48+
shift_register_t bestpath = 0;
4949
distance_t leasterror = USHRT_MAX;
5050
// search for a state with the least error
5151
for (shift_register_t state = 0; state < buf->num_states; state += search_every) {

misc_modules/frequency_manager/src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ class FrequencyManagerModule : public ModuleManager::Instance {
531531
ImGui::TableSetColumnIndex(0);
532532
if (ImGui::Button(("Import##_freq_mgr_imp_" + _this->name).c_str(), ImVec2(ImGui::GetContentRegionAvail().x, 0)) && !_this->importOpen) {
533533
_this->importOpen = true;
534-
_this->importDialog = new pfd::open_file("Import bookmarks", "", { "JSON Files (*.json)", "*.json", "All Files", "*" }, true);
534+
_this->importDialog = new pfd::open_file("Import bookmarks", "", { "JSON Files (*.json)", "*.json", "All Files", "*" }, pfd::opt::multiselect);
535535
}
536536

537537
ImGui::TableSetColumnIndex(1);
@@ -544,7 +544,7 @@ class FrequencyManagerModule : public ModuleManager::Instance {
544544
}
545545
config.release();
546546
_this->exportOpen = true;
547-
_this->exportDialog = new pfd::save_file("Export bookmarks", "", { "JSON Files (*.json)", "*.json", "All Files", "*" }, true);
547+
_this->exportDialog = new pfd::save_file("Export bookmarks", "", { "JSON Files (*.json)", "*.json", "All Files", "*" });
548548
}
549549
if (selectedNames.size() == 0 && _this->selectedListName != "") { style::endDisabled(); }
550550
ImGui::EndTable();
@@ -787,7 +787,7 @@ class FrequencyManagerModule : public ModuleManager::Instance {
787787

788788
void exportBookmarks(std::string path) {
789789
std::ofstream fs(path);
790-
exportedBookmarks >> fs;
790+
fs << exportedBookmarks;
791791
fs.close();
792792
}
793793

0 commit comments

Comments
 (0)