commit 994b86036251bb52003443895715520f37c274ba
parent 0c0ffda19245e064e156ac74a58b656eded675eb
Author: Johannes Lorenz <[email protected]>
Date: Sun, 25 Oct 2020 19:24:45 +0100
MiddleWare: Mark functions const
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/Misc/MiddleWare.cpp b/src/Misc/MiddleWare.cpp
@@ -2185,7 +2185,7 @@ void MiddleWare::enableAutoSave(int interval_sec)
impl->autoSave.dt = interval_sec;
}
-int MiddleWare::checkAutoSave(void)
+int MiddleWare::checkAutoSave(void) const
{
//save spec zynaddsubfx-PID-autosave.xmz
const std::string home = getenv("HOME");
@@ -2317,7 +2317,7 @@ void MiddleWare::pendingSetProgram(int part, int program)
impl->bToU->write("/setprogram", "cc", part, program);
}
-std::string MiddleWare::activeUrl(void)
+std::string MiddleWare::activeUrl(void) const
{
return impl->last_url;
}
diff --git a/src/Misc/MiddleWare.h b/src/Misc/MiddleWare.h
@@ -40,7 +40,7 @@ class MiddleWare
//instances are in use OR when there was a crash
//
//When an old save is found return the id of the save file
- int checkAutoSave(void);
+ int checkAutoSave(void) const;
void removeAutoSave(void);
@@ -73,13 +73,13 @@ class MiddleWare
void pendingSetProgram(int part, int program);
//Get/Set the active bToU url
- std::string activeUrl(void);
+ std::string activeUrl(void) const;
void activeUrl(std::string u);
//View Synthesis Parameters
const SYNTH_T &getSynth(void) const;
//liblo stuff
const char* getServerAddress(void) const;
-
+
const PresetsStore& getPresetsStore() const;
PresetsStore& getPresetsStore();