Add const-nees to parameters.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
b3dc584fb0
commit
1033c98028
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -167,7 +167,7 @@ void QApple::timerEvent(QTimerEvent *)
|
|||
setNextTimer(nextGap);
|
||||
}
|
||||
|
||||
void QApple::setNextTimer(int ms)
|
||||
void QApple::setNextTimer(const int ms)
|
||||
{
|
||||
if (ms != myCurrentGap)
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ private slots:
|
|||
|
||||
private:
|
||||
|
||||
void setNextTimer(int ms);
|
||||
void setNextTimer(const int ms);
|
||||
|
||||
QMdiSubWindow * myEmulatorWindow;
|
||||
Emulator * myEmulator;
|
||||
|
|
Loading…
Add table
Reference in a new issue