diff options
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 | ||