Browse Source

Removed const qualifiers on return value for getPrimaryConfigSection() and getSecondaryConfigSection()

release/0.19
Jessica James 8 years ago
parent
commit
a258f6e489
  1. 4
      Jupiter/IRC_Client.cpp
  2. 4
      Jupiter/IRC_Client.h

4
Jupiter/IRC_Client.cpp

@ -307,12 +307,12 @@ const Jupiter::ReadableString &Jupiter::IRC::Client::getConfigSection() const
return Jupiter::ReferenceString::empty; return Jupiter::ReferenceString::empty;
} }
const Jupiter::Config *Jupiter::IRC::Client::getPrimaryConfigSection() const Jupiter::Config *Jupiter::IRC::Client::getPrimaryConfigSection() const
{ {
return Jupiter::IRC::Client::data_->primary_section; return Jupiter::IRC::Client::data_->primary_section;
} }
const Jupiter::Config *Jupiter::IRC::Client::getSecondaryConfigSection() const Jupiter::Config *Jupiter::IRC::Client::getSecondaryConfigSection() const
{ {
return Jupiter::IRC::Client::data_->secondary_section; return Jupiter::IRC::Client::data_->secondary_section;
} }

4
Jupiter/IRC_Client.h

@ -479,14 +479,14 @@ namespace Jupiter
* *
* @return The primary config section if it exists, nullptr otherwise. * @return The primary config section if it exists, nullptr otherwise.
*/ */
const Jupiter::Config *getPrimaryConfigSection() const; Jupiter::Config *getPrimaryConfigSection() const;
/** /**
* @brief Fetches the primary config section * @brief Fetches the primary config section
* *
* @return The primary config section if it exists, nullptr otherwise. * @return The primary config section if it exists, nullptr otherwise.
*/ */
const Jupiter::Config *getSecondaryConfigSection() const; Jupiter::Config *getSecondaryConfigSection() const;
/** /**
* @brief Sets the primary config section * @brief Sets the primary config section

Loading…
Cancel
Save