16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 19:09:20 +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

@@ -16,7 +16,7 @@ http://mozilla.org/MPL/2.0/.
#include "utilities/Logs.h"
#include "rendering/renderer.h"
void TButton::Clear(int i)
void TButton::Clear(const int i)
{
*this = TButton();
if( i >= 0 ) {
@@ -25,7 +25,7 @@ void TButton::Clear(int i)
Update(); // kasowanie bitu Feedback, o ile jakiś ustawiony
};
bool TButton::Init( std::string const &asName, TModel3d const *pModel, bool bNewOn ) {
bool TButton::Init( std::string const &asName, TModel3d const *pModel, const bool bNewOn ) {
if( pModel == nullptr ) { return false; }
@@ -157,7 +157,7 @@ TButton::play() {
}
void
TButton::gain(float new_volume) {
TButton::gain(const float new_volume) {
m_soundfxincrease.gain(new_volume);
m_soundfxdecrease.gain(new_volume);
}