aboutsummaryrefslogtreecommitdiff
path: root/src/Resources.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Resources.cc')
-rw-r--r--src/Resources.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Resources.cc b/src/Resources.cc
index c6ddf3c..feab9ea 100644
--- a/src/Resources.cc
+++ b/src/Resources.cc
@@ -68,11 +68,10 @@ void FbTk::Resource<std::vector<WinButton::Type> >::
68setFromString(char const *strval) { 68setFromString(char const *strval) {
69 vector<std::string> val; 69 vector<std::string> val;
70 StringUtil::stringtok(val, strval); 70 StringUtil::stringtok(val, strval);
71 int size=val.size();
72 //clear old values 71 //clear old values
73 m_value.clear(); 72 m_value.clear();
74 73
75 for (int i=0; i<size; i++) { 74 for (size_t i = 0; i < val.size(); i++) {
76 if (strcasecmp(val[i].c_str(), "Maximize")==0) 75 if (strcasecmp(val[i].c_str(), "Maximize")==0)
77 m_value.push_back(WinButton::MAXIMIZE); 76 m_value.push_back(WinButton::MAXIMIZE);
78 else if (strcasecmp(val[i].c_str(), "Minimize")==0) 77 else if (strcasecmp(val[i].c_str(), "Minimize")==0)
@@ -138,8 +137,7 @@ template<>
138std::string FbTk::Resource<std::vector<WinButton::Type> >:: 137std::string FbTk::Resource<std::vector<WinButton::Type> >::
139getString() const { 138getString() const {
140 string retval; 139 string retval;
141 int size=m_value.size(); 140 for (size_t i = 0; i < m_value.size(); i++) {
142 for (int i=0; i<size; i++) {
143 switch (m_value[i]) { 141 switch (m_value[i]) {
144 case WinButton::SHADE: 142 case WinButton::SHADE:
145 retval.append("Shade"); 143 retval.append("Shade");