16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 02:09:19 +02:00

reformat: parameters can be made const

This commit is contained in:
jerrrrycho
2026-07-04 07:08:14 +02:00
parent 6fd1d6715b
commit 220689a5e3
121 changed files with 1380 additions and 1352 deletions

View File

@@ -165,7 +165,7 @@ basic_controller::deserialize_operation( cParser &Input ) -> bool {
}
auto
basic_controller::insert( std::string const Name, basic_element Element ) -> element_handle {
basic_controller::insert( std::string const Name, const basic_element Element ) -> element_handle {
m_elements.push_back( Element );
m_elementnames.push_back( Name );

View File

@@ -126,7 +126,7 @@ private:
};
template<typename ...Args_>
basic_element::basic_element( type_e Type, Args_ ...Args )
basic_element::basic_element(const type_e Type, Args_ ...Args )
{
switch( Type ) {
case type_e::variable: {

View File

@@ -5,25 +5,25 @@
#include "gl/vao.h"
#include "utilities/Logs.h"
void texture_window_resize(GLFWwindow *win, int w, int h)
void texture_window_resize(GLFWwindow *win, const int w, const int h)
{
const auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
texwindow->notify_window_size(win, w, h);
}
void texture_window_fb_resize(GLFWwindow *win, int w, int h)
void texture_window_fb_resize(GLFWwindow *win, const int w, const int h)
{
const auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
texwindow->notify_window_fb_size(win, w, h);
}
void texture_window_mouse_button(GLFWwindow *win, int button, int action, int mods)
void texture_window_mouse_button(GLFWwindow *win, const int button, const int action, int mods)
{
const auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
texwindow->notify_click(win, button, action);
}
void texture_window_cursor_pos(GLFWwindow *win, double x, double y)
void texture_window_cursor_pos(GLFWwindow *win, const double x, const double y)
{
const auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
texwindow->notify_cursor_pos(win, x, y);
@@ -185,7 +185,7 @@ void python_screen_viewer::threadfunc()
}
}
void python_screen_viewer::notify_window_fb_size(GLFWwindow *window, int w, int h)
void python_screen_viewer::notify_window_fb_size(GLFWwindow *window, const int w, const int h)
{
for (const auto &conf : m_windows) {
if (conf->window == window) {
@@ -196,7 +196,7 @@ void python_screen_viewer::notify_window_fb_size(GLFWwindow *window, int w, int
}
}
void python_screen_viewer::notify_window_size(GLFWwindow *window, int w, int h)
void python_screen_viewer::notify_window_size(GLFWwindow *window, const int w, const int h)
{
for (const auto &conf : m_windows) {
if (conf->window == window) {
@@ -207,7 +207,7 @@ void python_screen_viewer::notify_window_size(GLFWwindow *window, int w, int h)
}
}
void python_screen_viewer::notify_cursor_pos(GLFWwindow *window, double x, double y)
void python_screen_viewer::notify_cursor_pos(GLFWwindow *window, const double x, const double y)
{
for (const auto &conf : m_windows) {
if (conf->window == window) {