Skip to content

Commit

Permalink
Fixed clang tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Jan 2, 2025
1 parent cd836b5 commit 981a23a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fineftp-server/include/fineftp/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace fineftp
* @param output: Normal output prints. Defaults to std::cout.
* @param error: Error output prints. Defaults to std::cerr.
*/
FINEFTP_EXPORT FtpServer(const std::string& address, const uint16_t port = 21, std::ostream& output = std::cout, std::ostream& error = std::cerr);
FINEFTP_EXPORT FtpServer(const std::string& address, uint16_t port = 21, std::ostream& output = std::cout, std::ostream& error = std::cerr);

/**
* @brief Creates an FTP Server instance that will listen on the the given control port and accept connections from the given network interface.
Expand Down Expand Up @@ -94,7 +94,7 @@ namespace fineftp
* @param output: Normal output prints. Defaults to std::cout.
* @param error: Error output prints. Defaults to std::cerr.
*/
FINEFTP_EXPORT FtpServer(const uint16_t port = 21, std::ostream& output = std::cout, std::ostream& error = std::cerr);
FINEFTP_EXPORT FtpServer(uint16_t port = 21, std::ostream& output = std::cout, std::ostream& error = std::cerr);

// Move
FINEFTP_EXPORT FtpServer(FtpServer&&) noexcept;
Expand Down
2 changes: 1 addition & 1 deletion fineftp-server/src/server_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace fineftp
class FtpServerImpl
{
public:
FtpServerImpl(const std::string& address, const uint16_t port, std::ostream& output, std::ostream& error);
FtpServerImpl(const std::string& address, uint16_t port, std::ostream& output, std::ostream& error);

// Copy (disabled)
FtpServerImpl(const FtpServerImpl&) = delete;
Expand Down

0 comments on commit 981a23a

Please sign in to comment.