Use camelCase.

This commit is contained in:
Matthieu Gautier 2019-08-10 20:29:30 +02:00
parent 635d4438e5
commit cd050ddcc8
2 changed files with 7 additions and 7 deletions

View File

@ -50,12 +50,12 @@ namespace kiwix
*/ */
void stop(); void stop();
void set_root(const std::string& root); void setRoot(const std::string& root);
void set_addr(const std::string& addr) { m_addr = addr; } void setAddress(const std::string& addr) { m_addr = addr; }
void set_port(int port) { m_port = port; } void setPort(int port) { m_port = port; }
void set_nbThreads(int threads) { m_nbThreads = threads; } void setNbThreads(int threads) { m_nbThreads = threads; }
void set_verbose(bool verbose) { m_verbose = verbose; } void setVerbose(bool verbose) { m_verbose = verbose; }
void set_taskbar(bool withTaskbar, bool withLibraryButton) void setTaskbar(bool withTaskbar, bool withLibraryButton)
{ m_withTaskbar = withTaskbar; m_withLibraryButton = withLibraryButton; } { m_withTaskbar = withTaskbar; m_withLibraryButton = withLibraryButton; }
protected: protected:

View File

@ -165,7 +165,7 @@ void Server::stop() {
mp_server.reset(nullptr); mp_server.reset(nullptr);
} }
void Server::set_root(const std::string& root) void Server::setRoot(const std::string& root)
{ {
m_root = root; m_root = root;
if (m_root[0] != '/') { if (m_root[0] != '/') {