aboutsummaryrefslogtreecommitdiff
path: root/src/Resources.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-04-02 21:37:44 (GMT)
committerfluxgen <fluxgen>2006-04-02 21:37:44 (GMT)
commit894a7148be8ac88f7f1e98917f33088ab301bf60 (patch)
treeb9c3bd9fa04a64babc749a319a5610caabea9479 /src/Resources.cc
parent0ca3754d683b862762695d1be891c98410f439ac (diff)
downloadfluxbox-894a7148be8ac88f7f1e98917f33088ab301bf60.zip
fluxbox-894a7148be8ac88f7f1e98917f33088ab301bf60.tar.bz2
size_t fixes, thanks Semushin Slava aka php-coder
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");