Commit 7a57c08fa6a5ec5f367d872c15991aa3a855bea4

Authored by Perry Werneck
1 parent e74f305b
Exists in master and in 1 other branch develop

Adjusting "getProperties" method.

client/src/host/properties.cc
... ... @@ -40,7 +40,7 @@
40 40  
41 41 /*---[ Implement ]----------------------------------------------------------------------------------*/
42 42  
43   -TN3270::Property * TN3270::Host::operator[](const char *name) const {
  43 +TN3270::Property * TN3270::Host::getProperty(const char *name) const {
44 44  
45 45 if(!this->session)
46 46 throw std::system_error(ENODATA, std::system_category());
... ...
client/src/include/lib3270/ipc.h
... ... @@ -635,7 +635,11 @@
635 635  
636 636  
637 637 // Get properties
638   - Property * operator[](const char *name) const;
  638 + Property * getProperty(const char *name) const;
  639 +
  640 + inline Property * operator[](const char *name) const {
  641 + return getProperty(name);
  642 + }
639 643  
640 644 /// @brief Get lib3270 version.
641 645 inline std::string getVersion() const {
... ...