diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d6a644b..0b1db533 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ find_path(BOOST_OPTIONAL_DIR NAMES boost/optional.hpp) if(BOOST_OPTIONAL_DIR) message(STATUS "Found boost/optional.hpp in ${BOOST_OPTIONAL_DIR}") include_directories(${BOOST_OPTIONAL_DIR}) - add_definitions(-DBOOST_OPTIONAL_FOUND)# I'd really prefer using configure_file but this is more compatible with qmake + add_definitions(-DBOOST_OPTIONAL_FOUND) endif() set(CMAKE_INCLUDE_CURRENT_DIR TRUE) diff --git a/src/KDSoapServer/KDSoapServerObjectInterface.h b/src/KDSoapServer/KDSoapServerObjectInterface.h index 0c881b63..8217e5d8 100644 --- a/src/KDSoapServer/KDSoapServerObjectInterface.h +++ b/src/KDSoapServer/KDSoapServerObjectInterface.h @@ -69,7 +69,7 @@ class KDSOAPSERVER_EXPORT KDSoapServerObjectInterface virtual ~KDSoapServerObjectInterface(); KDSoapServerObjectInterface(const KDSoapServerObjectInterface &) = delete; - KDSoapServerObjectInterface &operator =(const KDSoapServerObjectInterface &) = delete; + KDSoapServerObjectInterface &operator=(const KDSoapServerObjectInterface &) = delete; /** * Handle \p request and return \p response. diff --git a/src/KDSoapServer/KDSoapServerSocket.cpp b/src/KDSoapServer/KDSoapServerSocket.cpp index 252cb372..ea6cbf3b 100644 --- a/src/KDSoapServer/KDSoapServerSocket.cpp +++ b/src/KDSoapServer/KDSoapServerSocket.cpp @@ -430,13 +430,13 @@ bool KDSoapServerSocket::handleFileDownload(KDSoapServerObjectInterface *serverO Q_UNUSED(written); char block[4096] = {0}; - //qint64 totalRead = 0; + // qint64 totalRead = 0; while (!device->atEnd()) { const qint64 in = device->read(block, sizeof(block)); if (in <= 0) { break; } - //totalRead += in; + // totalRead += in; if (in != write(block, in)) { // error = true; break;