[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bphonon-gstreamer=5D_gstreamer=3A_formatting_is_the_?=
From:       Harald Sitter <sitter () kde ! org>
Date:       2011-04-21 14:53:31
Message-ID: 20110421145331.E7E33A60B0 () git ! kde ! org
[Download RAW message or body]

Git commit d3ba320475b974aacca452a4b59210bb3236f768 by Harald Sitter.
Committed on 21/04/2011 at 16:51.
Pushed by sitter into branch 'master'.

formatting is the key to eternal life

M  +16   -16   gstreamer/plugininstaller.cpp     

http://commits.kde.org/phonon-gstreamer/d3ba320475b974aacca452a4b59210bb3236f768

diff --git a/gstreamer/plugininstaller.cpp b/gstreamer/plugininstaller.cpp
index d8ef528..aa06fb2 100644
--- a/gstreamer/plugininstaller.cpp
+++ b/gstreamer/plugininstaller.cpp
@@ -68,7 +68,7 @@ QString PluginInstaller::description(const GstCaps *caps, \
PluginType type)  return 0;
         }
         pluginStr = QString::fromUtf8(pluginDesc);
-        g_free (pluginDesc);
+        g_free(pluginDesc);
         return pluginStr;
     }
 #else
@@ -98,7 +98,7 @@ QString PluginInstaller::description(const gchar *name, PluginType \
type)  return 0;
         }
         pluginStr = QString::fromUtf8(pluginDesc);
-        g_free (pluginDesc);
+        g_free(pluginDesc);
         return pluginStr;
     }
 #endif
@@ -121,10 +121,10 @@ QString PluginInstaller::buildInstallationString(const GstCaps \
*caps, PluginType  }
 
     return QString("gstreamer|0.10|%0|%1|%2-%3")
-        .arg( qApp->applicationName() )
-        .arg( description(caps, type) )
-        .arg( descType )
-        .arg( getCapType(caps) );
+        .arg(qApp->applicationName())
+        .arg(description(caps, type))
+        .arg(descType)
+        .arg(getCapType(caps));
 }
 
 QString PluginInstaller::buildInstallationString(const gchar *name, PluginType type)
@@ -138,10 +138,10 @@ QString PluginInstaller::buildInstallationString(const gchar \
*name, PluginType t  return QString();
     }
     return QString("gstreamer|0.10|%0|%1|%2-%3")
-        .arg( qApp->applicationName() )
-        .arg( description(name, type) )
-        .arg( descType )
-        .arg( name );
+        .arg(qApp->applicationName())
+        .arg(description(name, type))
+        .arg(descType)
+        .arg(name);
 }
 
 PluginInstaller::PluginInstaller(QObject *parent)
@@ -169,11 +169,11 @@ void PluginInstaller::run()
     }
     gchar *details[m_pluginList.size()+m_capList.size()+1];
     int i = 0;
-    foreach(QString plugin, m_pluginList.keys()) {
+    foreach (QString plugin, m_pluginList.keys()) {
         details[i] = strdup(buildInstallationString(plugin.toLocal8Bit().data(), \
m_pluginList[plugin]).toLocal8Bit().data());  i++;
     }
-    foreach(GstCaps *caps, m_capList.keys()) {
+    foreach (GstCaps *caps, m_capList.keys()) {
         details[i] = strdup(buildInstallationString(caps, \
m_capList[caps]).toLocal8Bit().data());  i++;
     }
@@ -246,7 +246,7 @@ void \
PluginInstaller::pluginInstallationResult(GstInstallPluginsReturn result)  \
PluginInstaller::InstallStatus PluginInstaller::checkInstalledPlugins()  {
     bool allFound = true;
-    foreach(QString plugin, m_pluginList.keys()) {
+    foreach (QString plugin, m_pluginList.keys()) {
         if (!gst_default_registry_check_feature_version(plugin.toLocal8Bit().data(), \
0, 10, 0)) {  allFound = false;
             break;
@@ -266,13 +266,13 @@ PluginInstaller::InstallStatus \
PluginInstaller::checkInstalledPlugins()  
 QString PluginInstaller::getCapType(const GstCaps *caps)
 {
-    GstStructure *str = gst_caps_get_structure (caps, 0);
-    return QString::fromUtf8(gst_structure_get_name (str));;
+    GstStructure *str = gst_caps_get_structure(caps, 0);
+    return QString::fromUtf8(gst_structure_get_name(str));
 }
 
 void PluginInstaller::reset()
 {
-    foreach(GstCaps *caps, m_capList.keys()) {
+    foreach (GstCaps *caps, m_capList.keys()) {
         gst_caps_unref(caps);
     }
     m_capList.clear();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic