summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Schwarzer <[email protected]>2016-04-24 12:27:51 +0200
committerFrederik Schwarzer <[email protected]>2016-04-24 12:27:51 +0200
commitf2c76cbe7882e3b56bfd62bfcd7f1f2b5514c998 (patch)
tree970d3311fd35c81e818c562848c839f04b7bb233
parentaa524b1dff5e184451727f17479c458404cbbbe9 (diff)
Remove parens around simple return statements.
-rw-r--r--kmahjonggbackground.cpp10
-rw-r--r--kmahjonggtileset.cpp16
2 files changed, 13 insertions, 13 deletions
diff --git a/kmahjonggbackground.cpp b/kmahjonggbackground.cpp
index f04bdb8..c4dc9de 100644
--- a/kmahjonggbackground.cpp
+++ b/kmahjonggbackground.cpp
@@ -108,7 +108,7 @@ bool KMahjonggBackground::load(const QString & file, short width, short height)
// verify if it is a valid file first and if we can open it
QFile bgfile(file);
if (!bgfile.open(QIODevice::ReadOnly)) {
- return (false);
+ return false;
}
bgfile.close();
@@ -144,7 +144,7 @@ bool KMahjonggBackground::load(const QString & file, short width, short height)
qCDebug(LIBKMAHJONGG_LOG) << "Using background at" << d->graphicspath;
if (d->graphicspath.isEmpty()) {
- return (false);
+ return false;
}
if (group.readEntry("Tiled", 0) != 0) {
@@ -164,7 +164,7 @@ bool KMahjonggBackground::load(const QString & file, short width, short height)
bool KMahjonggBackground::loadGraphics()
{
if (d->graphicsLoaded || d->isPlain) {
- return (true);
+ return true;
}
d->svg.load(d->graphicspath);
@@ -172,9 +172,9 @@ bool KMahjonggBackground::loadGraphics()
d->isSVG = true;
} else {
//qCDebug(LIBKMAHJONGG_LOG) << "could not load svg";
- return (false);
+ return false;
}
- return (true);
+ return true;
}
void KMahjonggBackground::sizeChanged(int newW, int newH)
diff --git a/kmahjonggtileset.cpp b/kmahjonggtileset.cpp
index 0653127..2c75522 100644
--- a/kmahjonggtileset.cpp
+++ b/kmahjonggtileset.cpp
@@ -203,7 +203,7 @@ bool KMahjonggTileset::loadTileset(const QString & tilesetPath)
// verify if it is a valid file first and if we can open it
QFile tilesetfile(tilesetPath);
if (!tilesetfile.open(QIODevice::ReadOnly)) {
- return (false);
+ return false;
}
tilesetfile.close();
@@ -230,7 +230,7 @@ bool KMahjonggTileset::loadTileset(const QString & tilesetPath)
//only SVG for now
d->isSVG = true;
if (d->graphicspath.isEmpty()) {
- return (false);
+ return false;
}
d->originaldata.w = group.readEntry("TileWidth", 30);
@@ -244,14 +244,14 @@ bool KMahjonggTileset::loadTileset(const QString & tilesetPath)
d->graphicsLoaded = false;
d->filename = tilesetPath;
- return (true);
+ return true;
}
// ---------------------------------------------------------
bool KMahjonggTileset::loadGraphics()
{
if (d->graphicsLoaded) {
- return (true);
+ return true;
}
if (d->isSVG) {
//really?
@@ -262,14 +262,14 @@ bool KMahjonggTileset::loadGraphics()
d->graphicsLoaded = true;
reloadTileset(QSize(d->originaldata.w, d->originaldata.h));
} else {
- return (false);
+ return false;
}
} else {
//TODO add support for png??
return false;
}
- return (true);
+ return true;
}
// ---------------------------------------------------------
@@ -284,14 +284,14 @@ bool KMahjonggTileset::reloadTileset(const QSize & newTilesize)
updateScaleInfo(newTilesize.width(), newTilesize.height());
//rendering will be done when needed, automatically using the global cache
} else {
- return (false);
+ return false;
}
} else {
//TODO add support for png???
return false;
}
- return (true);
+ return true;
}
void KMahjonggTileset::buildElementIdTable()