More coding standard fixes

This commit is contained in:
Brad Davis 2015-04-22 19:18:09 -07:00
parent 8d8c4babba
commit c4d2bd2cda
12 changed files with 31 additions and 31 deletions

View file

@ -41,7 +41,7 @@ void LoginDialog::toggleAction() {
}
}
void LoginDialog::handleLoginCompleted(const QUrl& authURL) {
void LoginDialog::handleLoginCompleted(const QUrl&) {
hide();
}
@ -49,9 +49,9 @@ void LoginDialog::handleLoginFailed() {
setStatusText("<font color = \"#267077\">Invalid username or password.< / font>");
}
void LoginDialog::setStatusText(const QString &a) {
void LoginDialog::setStatusText(const QString& statusText) {
if (a != _statusText) {
_statusText = a;
_statusText = statusText;
emit statusTextChanged();
}
}

View file

@ -139,14 +139,16 @@ void OffscreenUi::load(const QUrl& qmlSource, std::function<void(QQmlContext*)>
void OffscreenUi::requestUpdate() {
_polish = true;
if (!_updateTimer.isActive())
if (!_updateTimer.isActive()) {
_updateTimer.start();
}
}
void OffscreenUi::requestRender() {
if (!_updateTimer.isActive())
if (!_updateTimer.isActive()) {
_updateTimer.start();
}
}
void OffscreenUi::finishQmlLoad() {
disconnect(_qmlComponent, &QQmlComponent::statusChanged, this, &OffscreenUi::finishQmlLoad);

View file

@ -283,7 +283,6 @@ void QTestWindow::renderText() {
}
void QTestWindow::renderQml() {
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
@ -297,7 +296,6 @@ void QTestWindow::renderQml() {
}
glBegin(GL_QUADS);
{
glTexCoord2f(0, 0);
glVertex2f(-1, -1);
glTexCoord2f(0, 1);