Skip to content

Commit

Permalink
minor formatting issues for CMake and C++
Browse files Browse the repository at this point in the history
  • Loading branch information
winterz committed Sep 14, 2022
1 parent 074a973 commit d9b402e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/KDSoapServer/KDSoapServerObjectInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/KDSoapServer/KDSoapServerSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9b402e

Please sign in to comment.