Add missing type qualifiers

This commit is contained in:
Robbert van der Helm
2020-06-06 12:43:35 +02:00
parent 89c186f2c4
commit 957da62137
5 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -165,9 +165,9 @@ fs::path find_vst_plugin() {
}
boost::filesystem::path generate_group_endpoint(
std::string group_name,
boost::filesystem::path wine_prefix,
PluginArchitecture architecture) {
const std::string& group_name,
const boost::filesystem::path& wine_prefix,
const PluginArchitecture architecture) {
std::ostringstream socket_name;
socket_name << "yabridge-group-" << group_name << "-"
<< std::to_string(
+3 -3
View File
@@ -134,9 +134,9 @@ std::optional<boost::filesystem::path> find_wineprefix();
* above.
*/
boost::filesystem::path generate_group_endpoint(
std::string group_name,
boost::filesystem::path wine_prefix,
PluginArchitecture architecture);
const std::string& group_name,
const boost::filesystem::path& wine_prefix,
const PluginArchitecture architecture);
/**
* Generate a unique name for the Unix domain socket endpoint based on the VST
+1 -1
View File
@@ -48,7 +48,7 @@ Size get_maximum_screen_dimensions(xcb_connection_t& x11_connection);
xcb_window_t get_x11_handle(HWND win32_handle);
ATOM register_window_class(std::string window_class_name);
WindowClass::WindowClass(std::string name)
WindowClass::WindowClass(const std::string& name)
: atom(register_window_class(name)) {}
WindowClass::~WindowClass() {
+1 -1
View File
@@ -48,7 +48,7 @@ struct Size {
*/
class WindowClass {
public:
WindowClass(std::string name);
explicit WindowClass(const std::string& name);
~WindowClass();
/**
+1 -2
View File
@@ -31,8 +31,7 @@ Win32Timer::~Win32Timer() {
}
}
Win32Timer::Win32Timer(Win32Timer&& o) {
timer_id = o.timer_id;
Win32Timer::Win32Timer(Win32Timer&& o) : timer_id(o.timer_id) {
o.timer_id = std::nullopt;
}