[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/kipi-plugins/batchprocessimages
From: Martin Engelmann <murphi.oss () googlemail ! com>
Date: 2009-11-07 15:56:23
Message-ID: 1257609383.716617.5083.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1046124 by mengelmann:
Fix krazy warnings
Replace system calls with KDE defines
M +4 -12 renameimageswidget.cpp
--- trunk/extragear/graphics/kipi-plugins/batchprocessimages/renameimageswidget.cpp #1046123:1046124
@@ -24,15 +24,6 @@
#include "renameimageswidget.h"
#include "renameimageswidget.moc"
-// C ANSI includes
-
-extern "C"
-{
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-}
-
// C++ includes
#include <cstdio>
@@ -66,6 +57,7 @@
#include <kio/previewjob.h>
#include <kio/renamedialog.h>
#include <klocale.h>
+#include <kde_file.h>
// LibKIPI includes
@@ -530,8 +522,8 @@
if (!m_overwriteAll)
{
- struct stat info;
- while (::stat(QFile::encodeName(dst.path()), &info) == 0)
+ KDE_struct_stat info;
+ while (KDE_stat(QFile::encodeName(dst.path()), &info) == 0)
{
if (m_autoSkip)
{
@@ -594,7 +586,7 @@
// Get the src info
KIPI::ImageInfo srcInfo = m_interface->info(src);
- if (::rename(QFile::encodeName(src.path()),
+ if (KDE_rename(QFile::encodeName(src.path()),
QFile::encodeName(dst.path())) == 0)
{
srcInfo.setTitle(dst.fileName());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic