Fix tmpnam() warnings, using KTempfile instead of mkstemp.
Fix kde -HEAD as well: http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdemultimedia/kscd/CDDialog.cpp
This commit is contained in:
parent
64eb9da0e2
commit
f4b1e8a98c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35459
30
audio/kdemultimedia2/files/patch-CDDialog.cpp
Normal file
30
audio/kdemultimedia2/files/patch-CDDialog.cpp
Normal file
@ -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
|
||||
|
30
audio/kdemultimedia3/files/patch-CDDialog.cpp
Normal file
30
audio/kdemultimedia3/files/patch-CDDialog.cpp
Normal file
@ -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
|
||||
|
30
multimedia/kdemultimedia3/files/patch-CDDialog.cpp
Normal file
30
multimedia/kdemultimedia3/files/patch-CDDialog.cpp
Normal file
@ -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
|
||||
|
30
multimedia/kdemultimedia4/files/patch-CDDialog.cpp
Normal file
30
multimedia/kdemultimedia4/files/patch-CDDialog.cpp
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user