Add const-nees to parameters.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2017-07-04 19:24:26 +01:00
parent b3dc584fb0
commit 1033c98028
4 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ void Emulator::setVideoSize(QMdiSubWindow * window, const QSize & size)
window->resize(size + gap);
}
void Emulator::setZoom(QMdiSubWindow * window, int x)
void Emulator::setZoom(QMdiSubWindow * window, const int x)
{
const QSize target = video->minimumSize() * x;
setVideoSize(window, target);

View file

@ -14,7 +14,7 @@ public:
void redrawScreen();
void setZoom(QMdiSubWindow * window, int x);
void setZoom(QMdiSubWindow * window, const int x);
void set43AspectRatio(QMdiSubWindow * window);
private:

View file

@ -167,7 +167,7 @@ void QApple::timerEvent(QTimerEvent *)
setNextTimer(nextGap);
}
void QApple::setNextTimer(int ms)
void QApple::setNextTimer(const int ms)
{
if (ms != myCurrentGap)
{

View file

@ -29,7 +29,7 @@ private slots:
private:
void setNextTimer(int ms);
void setNextTimer(const int ms);
QMdiSubWindow * myEmulatorWindow;
Emulator * myEmulator;