Submitted By: Uwe Düffert (lfs at uwe-dueffert dot de)
Date: 2004-05-16
Initial Package Version: 1.3.0-rc1
Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/lincvs-1.3.0-rc1-gcc34-1.patch
Upstream Status: not reported
Description: fix compilation with gcc34
 
diff -Naur lincvs-1.3.0-rc1.orig/src/HistoryDialogImpl.cpp lincvs-1.3.0-rc1/src/HistoryDialogImpl.cpp
--- lincvs-1.3.0-rc1.orig/src/HistoryDialogImpl.cpp	2004-05-16 13:59:53.948017448 +0000
+++ lincvs-1.3.0-rc1/src/HistoryDialogImpl.cpp	2004-05-16 14:00:12.385214568 +0000
@@ -267,7 +267,8 @@
   if (failed) return;
   switch( cmd) {
      case EDIT_REVISION_CMD: {
-	 setPermission(QFile(tmpViewFileName),READABLE);//don't think you could change the file
+	 QFile f(tmpViewFileName);
+	 setPermission(f,READABLE);//don't think you could change the file
 	 emit editFile(tmpViewFileName);
 	 break;
      }
diff -Naur lincvs-1.3.0-rc1.orig/src/LogDialogImpl.cpp lincvs-1.3.0-rc1/src/LogDialogImpl.cpp
--- lincvs-1.3.0-rc1.orig/src/LogDialogImpl.cpp	2004-05-16 13:59:53.951016992 +0000
+++ lincvs-1.3.0-rc1/src/LogDialogImpl.cpp	2004-05-16 14:00:12.386214416 +0000
@@ -798,7 +798,8 @@
        break;
      }
      case EDIT_REVISION_CMD: {
-       setPermission(QFile(m_tmpDiffFileNameA),READABLE);//don't think you could change the file
+       QFile f(m_tmpDiffFileNameA);
+       setPermission(f,READABLE);//don't think you could change the file
        emit editFile(m_tmpDiffFileNameA);
        break;
      }
