Some coding style fixes
authorMohammed Sameer <msameer@foolab.org>
Fri, 2 Aug 2013 23:08:46 +0000 (02:08 +0300)
committerMohammed Sameer <msameer@foolab.org>
Fri, 2 Aug 2013 23:08:46 +0000 (02:08 +0300)
declarative/imagesettings.cpp
declarative/videosettings.cpp

index 60661be..6d12097 100644 (file)
@@ -88,7 +88,6 @@ ImageResolutionModel *ImageSettings::resolutions() {
     return 0;
   }
 
-
   if (!m_resolutions) {
     m_resolutions = new ImageResolutionModel(m_settings, this);
   }
@@ -97,7 +96,7 @@ ImageResolutionModel *ImageSettings::resolutions() {
 }
 
 bool ImageSettings::isReady() const {
-  return m_settings;
+  return m_settings != 0;
 }
 
 bool ImageSettings::setResolution(const QString& aspectRatio, const QString& resolution) {
index b2b6e8f..ec29a7a 100644 (file)
@@ -88,7 +88,6 @@ VideoResolutionModel *VideoSettings::resolutions() {
     return 0;
   }
 
-
   if (!m_resolutions) {
     m_resolutions = new VideoResolutionModel(m_settings, this);
   }
@@ -97,7 +96,7 @@ VideoResolutionModel *VideoSettings::resolutions() {
 }
 
 bool VideoSettings::isReady() const {
-  return m_settings;
+  return m_settings != 0;
 }
 
 bool VideoSettings::setResolution(const QString& aspectRatio, const QString& resolution) {