From 7a57c08fa6a5ec5f367d872c15991aa3a855bea4 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 17 Sep 2019 15:50:18 -0300 Subject: [PATCH] Adjusting "getProperties" method. --- client/src/host/properties.cc | 2 +- client/src/include/lib3270/ipc.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/host/properties.cc b/client/src/host/properties.cc index 0fa36ee..cd7cc77 100644 --- a/client/src/host/properties.cc +++ b/client/src/host/properties.cc @@ -40,7 +40,7 @@ /*---[ Implement ]----------------------------------------------------------------------------------*/ -TN3270::Property * TN3270::Host::operator[](const char *name) const { +TN3270::Property * TN3270::Host::getProperty(const char *name) const { if(!this->session) throw std::system_error(ENODATA, std::system_category()); diff --git a/client/src/include/lib3270/ipc.h b/client/src/include/lib3270/ipc.h index 8436094..fb005b4 100644 --- a/client/src/include/lib3270/ipc.h +++ b/client/src/include/lib3270/ipc.h @@ -635,7 +635,11 @@ // Get properties - Property * operator[](const char *name) const; + Property * getProperty(const char *name) const; + + inline Property * operator[](const char *name) const { + return getProperty(name); + } /// @brief Get lib3270 version. inline std::string getVersion() const { -- libgit2 0.21.2