[filelight] Attempt to fix mainWindow.cpp for gcc4.5

Neal Becker nbecker at fedoraproject.org
Tue Sep 7 23:16:08 UTC 2010


commit bd54f4c30b1222790a4b2d736cceddefc84c7b08
Author: Neal Becker <ndbecker2 at gmail.com>
Date:   Tue Sep 7 19:11:22 2010 -0400

    Attempt to fix mainWindow.cpp for gcc4.5

 filelight.spec      |    4 +++-
 mainWindow.cpp.diff |   19 +++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/filelight.spec b/filelight.spec
index 481a767..502601a 100644
--- a/filelight.spec
+++ b/filelight.spec
@@ -3,7 +3,7 @@
 Summary: Graphical disk usage statistics
 Name: filelight
 Version: 1.9
-Release: 5.rc3%{?dist}
+Release: 6.rc3%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: http://www.methylblue.com/filelight/
@@ -11,6 +11,7 @@ URL: http://www.methylblue.com/filelight/
 %define upstreamversion %{version}-rc3
 Source: http://www.methylblue.com/filelight/packages/filelight-%{upstreamversion}.tgz
 Patch0: filelight_part.desktop.diff
+Patch1: mainWindow.cpp.diff
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: kdelibs-devel kdebase-devel
@@ -28,6 +29,7 @@ directories having child segments.
 %define directory %{name}-%{version}rc3
 %setup -q -n %{directory}
 %patch0 -p0
+%patch1 -p0
 
 %build
 mkdir -p %{_target_platform}
diff --git a/mainWindow.cpp.diff b/mainWindow.cpp.diff
new file mode 100644
index 0000000..25da07b
--- /dev/null
+++ b/mainWindow.cpp.diff
@@ -0,0 +1,19 @@
+*** /home/nbecker/fedora.git/filelight/filelight-1.9rc3/src/app/mainWindow.cpp	2010-09-07 19:08:22.037301478 -0400
+--- /home/nbecker/fedora.git/filelight/filelight-1.9rc3/src/app/mainWindow.cpp~	2009-05-29 19:10:16.000000000 -0400
+***************
+*** 222,228 ****
+  
+  inline bool MainWindow::slotScanPath(const QString &path)
+  {
+!     return slotScanUrl(KUrl(path));
+  }
+  
+  bool MainWindow::slotScanUrl(const KUrl &url)
+--- 222,228 ----
+  
+  inline bool MainWindow::slotScanPath(const QString &path)
+  {
+!     return slotScanUrl(KUrl::KUrl(path));
+  }
+  
+  bool MainWindow::slotScanUrl(const KUrl &url)


More information about the scm-commits mailing list