aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2000-11-27 02:54:09 +0000
committerKevin Lo <kevlo@FreeBSD.org>2000-11-27 02:54:09 +0000
commitf4b1e8a98c15fbbab4be73f201f73981910b9d91 (patch)
treec03b9d2260db5112da89a0c5540034febf687c29 /audio
parent64eb9da0e277fd538590a1ec0018055021e75580 (diff)
downloadports-f4b1e8a98c15fbbab4be73f201f73981910b9d91.tar.gz
ports-f4b1e8a98c15fbbab4be73f201f73981910b9d91.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/kdemultimedia2/files/patch-CDDialog.cpp30
-rw-r--r--audio/kdemultimedia3/files/patch-CDDialog.cpp30
2 files changed, 60 insertions, 0 deletions
diff --git a/audio/kdemultimedia2/files/patch-CDDialog.cpp b/audio/kdemultimedia2/files/patch-CDDialog.cpp
new file mode 100644
index 000000000000..3ecedcb68ced
--- /dev/null
+++ b/audio/kdemultimedia2/files/patch-CDDialog.cpp
@@ -0,0 +1,30 @@
+--- kscd/CDDialog.cpp.orig Fri Nov 24 18:13:01 2000
++++ kscd/CDDialog.cpp Mon Nov 27 10:22:44 2000
+@@ -24,6 +24,7 @@
+
+ #include <klocale.h>
+ #include <kdebug.h>
++#include <ktempfile.h>
+
+ #include <stdio.h>
+ #include <math.h>
+@@ -427,8 +428,9 @@
+ dialog->getSelection(submitcat);
+ delete dialog;
+
+- QString tempfile;
+- tempfile = tmpnam(0L);
++ KTempFile tmpFile;
++ tmpFile.setAutoDelete(true); // delete file when we are done.
++ QString tempfile = tmpFile.name();
+
+ save_cddb_entry(tempfile,true);
+
+@@ -515,7 +517,6 @@
+ file.close();
+ // file2.close(); // *****
+
+- unlink(QFile::encodeName(tempfile));
+ kdDebug() << "DONE SENDING\n" << endl;
+ } // upload
+
diff --git a/audio/kdemultimedia3/files/patch-CDDialog.cpp b/audio/kdemultimedia3/files/patch-CDDialog.cpp
new file mode 100644
index 000000000000..3ecedcb68ced
--- /dev/null
+++ b/audio/kdemultimedia3/files/patch-CDDialog.cpp
@@ -0,0 +1,30 @@
+--- kscd/CDDialog.cpp.orig Fri Nov 24 18:13:01 2000
++++ kscd/CDDialog.cpp Mon Nov 27 10:22:44 2000
+@@ -24,6 +24,7 @@
+
+ #include <klocale.h>
+ #include <kdebug.h>
++#include <ktempfile.h>
+
+ #include <stdio.h>
+ #include <math.h>
+@@ -427,8 +428,9 @@
+ dialog->getSelection(submitcat);
+ delete dialog;
+
+- QString tempfile;
+- tempfile = tmpnam(0L);
++ KTempFile tmpFile;
++ tmpFile.setAutoDelete(true); // delete file when we are done.
++ QString tempfile = tmpFile.name();
+
+ save_cddb_entry(tempfile,true);
+
+@@ -515,7 +517,6 @@
+ file.close();
+ // file2.close(); // *****
+
+- unlink(QFile::encodeName(tempfile));
+ kdDebug() << "DONE SENDING\n" << endl;
+ } // upload
+