mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: use the macro for sending data in KIO::SlaveInterface::setConfig()
no functional change Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
be70ca9e8c
commit
e4ce49f138
4 changed files with 5 additions and 7 deletions
|
@ -29,7 +29,7 @@
|
|||
#include "jobuidelegate.h"
|
||||
#include "kjobtrackerinterface.h"
|
||||
|
||||
#define KIO_ARGS QByteArray packedArgs; QDataStream stream( &packedArgs, QIODevice::WriteOnly ); stream
|
||||
#define KIO_ARGS QByteArray packedArgs; QDataStream stream(&packedArgs, QIODevice::WriteOnly); stream
|
||||
|
||||
namespace KIO {
|
||||
class SlaveInterface;
|
||||
|
|
|
@ -60,9 +60,6 @@ extern "C" {
|
|||
|
||||
using namespace KIO;
|
||||
|
||||
#define KIO_DATA QByteArray data; QDataStream stream( &data, QIODevice::WriteOnly ); stream
|
||||
#define KIO_FILESIZE_T(x) quint64(x)
|
||||
|
||||
namespace KIO {
|
||||
|
||||
static const int s_quit_signals[] = {
|
||||
|
|
|
@ -171,9 +171,7 @@ void SlaveInterface::kill()
|
|||
|
||||
void SlaveInterface::setConfig(const MetaData &config)
|
||||
{
|
||||
QByteArray data;
|
||||
QDataStream stream(&data, QIODevice::WriteOnly);
|
||||
stream << config;
|
||||
KIO_DATA << config;
|
||||
m_connection->send(CMD_CONFIG, data);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define KIO_DATA QByteArray data; QDataStream stream(&data, QIODevice::WriteOnly); stream
|
||||
#define KIO_FILESIZE_T(x) quint64(x)
|
||||
|
||||
class KUrl;
|
||||
|
||||
namespace KIO {
|
||||
|
|
Loading…
Add table
Reference in a new issue