aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-24 15:17:42 +0000
committerJohannes Schickel2009-05-24 15:17:42 +0000
commitb3c6751b9b7fc1401fd5e87a034cdaec92b67b20 (patch)
treeaa00dba58fb88ea2e095b886963370c7290c692b /gui/ThemeEngine.cpp
parent7c1eb057146af11793c627327f3fefe309d27fbb (diff)
downloadscummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.gz
scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.bz2
scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.zip
Strip trailing whitespaces in the whole code base.
svn-id: r40867
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r--gui/ThemeEngine.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 30aab03812..fe93a1f7d6 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -382,7 +382,7 @@ bool ThemeEngine::init() {
if (node.getName().hasSuffix(".zip") && !node.isDirectory()) {
#ifdef USE_ZLIB
Common::ZipArchive *zipArchive = new Common::ZipArchive(node);
-
+
if (!zipArchive || !zipArchive->isOpen()) {
delete zipArchive;
zipArchive = 0;
@@ -397,7 +397,7 @@ bool ThemeEngine::init() {
_themeArchive = new Common::FSDirectory(node);
}
}
-
+
// Load the theme
// We pass the theme file here by default, so the user will
// have a descriptive error message. The only exception will
@@ -415,7 +415,7 @@ void ThemeEngine::clearAll() {
}
void ThemeEngine::refresh() {
-
+
// Flush all bitmaps if the overlay pixel format changed.
if (_overlayFormat != _system->getOverlayFormat()) {
for (ImagesMap::iterator i = _bitmaps.begin(); i != _bitmaps.end(); ++i) {
@@ -622,7 +622,7 @@ void ThemeEngine::loadTheme(const Common::String &themeId) {
// Load the archive containing image and XML data
_themeOk = loadThemeXML(themeId);
}
-
+
if (!_themeOk) {
warning("Failed to load theme '%s'", themeId.c_str());
return;
@@ -1487,10 +1487,10 @@ void ThemeEngine::listUsableThemes(Common::FSNode node, Common::List<ThemeDescri
list.push_back(td);
}
}
-
+
fileList.clear();
#endif
-
+
// Check if we exceeded the given recursion depth
if (depth - 1 == -1)
return;
@@ -1509,7 +1509,7 @@ Common::String ThemeEngine::getThemeFile(const Common::String &id) {
// of the builtin one.
if (id.equalsIgnoreCase("default"))
return Common::String();
-
+
// For our builtin theme we don't have to do anything for now too
if (id.equalsIgnoreCase("builtin"))
return Common::String();