2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Made protected member variable private.
	* src/XmlRpcMethod.h
	* src/XmlRpcMethodImpl.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-06-12 14:14:47 +00:00
parent fd129ba6f4
commit e81c207caf
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variable private.
* src/XmlRpcMethod.h
* src/XmlRpcMethodImpl.cc
2010-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variable private.

View File

@ -63,11 +63,11 @@ struct XmlRpcResponse;
// subclass. If you add new XmlRpcMethod subclass, don't forget to add
// it to XmlRpcMethodFactory.
class XmlRpcMethod {
protected:
private:
SharedHandle<OptionParser> _optionParser;
Logger* _logger;
protected:
// Subclass must implement this function to fulfil XmlRpcRequest
// req. The return value of this method is used as a return value
// of XML-RPC request.
@ -91,6 +91,11 @@ protected:
void applyChangeableGlobalOption(Option* dest, Option* src) const;
BDE createErrorResponse(const Exception& e);
const SharedHandle<OptionParser>& getOptionParser() const
{
return _optionParser;
}
public:
XmlRpcMethod();

View File

@ -1016,7 +1016,7 @@ BDE GetGlobalOptionXmlRpcMethod::process
BDE result = BDE::dict();
for(std::map<std::string, std::string>::const_iterator i =
e->getOption()->begin(), eoi = e->getOption()->end(); i != eoi; ++i) {
SharedHandle<OptionHandler> h = _optionParser->findByName((*i).first);
SharedHandle<OptionHandler> h = getOptionParser()->findByName((*i).first);
if(!h.isNull() && !h->isHidden()) {
result[(*i).first] = (*i).second;
}