diff options
author | fluxgen <fluxgen> | 2006-04-02 21:37:44 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-04-02 21:37:44 (GMT) |
commit | 894a7148be8ac88f7f1e98917f33088ab301bf60 (patch) | |
tree | b9c3bd9fa04a64babc749a319a5610caabea9479 /src/Gnome.cc | |
parent | 0ca3754d683b862762695d1be891c98410f439ac (diff) | |
download | fluxbox_pavel-894a7148be8ac88f7f1e98917f33088ab301bf60.zip fluxbox_pavel-894a7148be8ac88f7f1e98917f33088ab301bf60.tar.bz2 |
size_t fixes, thanks Semushin Slava aka php-coder
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r-- | src/Gnome.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc index 95cf08e..96bf2fd 100644 --- a/src/Gnome.cc +++ b/src/Gnome.cc | |||
@@ -205,12 +205,12 @@ void Gnome::updateClientList(BScreen &screen) { | |||
205 | 205 | ||
206 | void Gnome::updateWorkspaceNames(BScreen &screen) { | 206 | void Gnome::updateWorkspaceNames(BScreen &screen) { |
207 | 207 | ||
208 | int number_of_desks = screen.getWorkspaceNames().size(); | 208 | size_t number_of_desks = screen.getWorkspaceNames().size(); |
209 | const BScreen::WorkspaceNames &workspace_names = screen.getWorkspaceNames(); | 209 | const BScreen::WorkspaceNames &workspace_names = screen.getWorkspaceNames(); |
210 | // convert our desktop names to a char * so we can send it | 210 | // convert our desktop names to a char * so we can send it |
211 | char *names[number_of_desks]; | 211 | char *names[number_of_desks]; |
212 | 212 | ||
213 | for (int i = 0; i < number_of_desks; i++) { | 213 | for (size_t i = 0; i < number_of_desks; i++) { |
214 | names[i] = new char[workspace_names[i].size() + 1]; | 214 | names[i] = new char[workspace_names[i].size() + 1]; |
215 | strcpy(names[i], workspace_names[i].c_str()); | 215 | strcpy(names[i], workspace_names[i].c_str()); |
216 | } | 216 | } |
@@ -223,7 +223,7 @@ void Gnome::updateWorkspaceNames(BScreen &screen) { | |||
223 | } | 223 | } |
224 | 224 | ||
225 | // destroy name buffers | 225 | // destroy name buffers |
226 | for (int i = 0; i < number_of_desks; i++) | 226 | for (size_t i = 0; i < number_of_desks; i++) |
227 | delete [] names[i]; | 227 | delete [] names[i]; |
228 | } | 228 | } |
229 | 229 | ||