From cd050ddcc8cc7ac6d06297b655db7147c969acbc Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Sat, 10 Aug 2019 20:29:30 +0200 Subject: [PATCH] Use camelCase. --- include/server.h | 12 ++++++------ src/server.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/server.h b/include/server.h index deb13163f..52f014543 100644 --- a/include/server.h +++ b/include/server.h @@ -50,12 +50,12 @@ namespace kiwix */ void stop(); - void set_root(const std::string& root); - void set_addr(const std::string& addr) { m_addr = addr; } - void set_port(int port) { m_port = port; } - void set_nbThreads(int threads) { m_nbThreads = threads; } - void set_verbose(bool verbose) { m_verbose = verbose; } - void set_taskbar(bool withTaskbar, bool withLibraryButton) + void setRoot(const std::string& root); + void setAddress(const std::string& addr) { m_addr = addr; } + void setPort(int port) { m_port = port; } + void setNbThreads(int threads) { m_nbThreads = threads; } + void setVerbose(bool verbose) { m_verbose = verbose; } + void setTaskbar(bool withTaskbar, bool withLibraryButton) { m_withTaskbar = withTaskbar; m_withLibraryButton = withLibraryButton; } protected: diff --git a/src/server.cpp b/src/server.cpp index 225e94592..3a4e72ec7 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -165,7 +165,7 @@ void Server::stop() { mp_server.reset(nullptr); } -void Server::set_root(const std::string& root) +void Server::setRoot(const std::string& root) { m_root = root; if (m_root[0] != '/') {