author | zecke <zecke> | 2004-10-14 16:36:42 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-14 16:36:42 (UTC) |
commit | f91c6162ea0e12d2c618072a78467310dcb23077 (patch) (unidiff) | |
tree | 6ad9d060360b4d3530e885a51687625a36a4a365 | |
parent | 91216c486aff5ddb194234cce3c9db453b9f3152 (diff) | |
download | opie-f91c6162ea0e12d2c618072a78467310dcb23077.zip opie-f91c6162ea0e12d2c618072a78467310dcb23077.tar.gz opie-f91c6162ea0e12d2c618072a78467310dcb23077.tar.bz2 |
case 0: it is a label and not a statement, it doesn't need ';' but ':' every decent
c compiler produced in the last twenty years will bitch about it...
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index e770304..6abdc85 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -189,27 +189,27 @@ void AdvancedFm::doDelete() { | |||
189 | } | 189 | } |
190 | break; | 190 | break; |
191 | case 1: | 191 | case 1: |
192 | // exit | 192 | // exit |
193 | break; | 193 | break; |
194 | default: | 194 | default: |
195 | break; | 195 | break; |
196 | }; | 196 | }; |
197 | 197 | ||
198 | } else { | 198 | } else { |
199 | if(doMsg) { | 199 | if(doMsg) { |
200 | switch ( QMessageBox::warning(this,tr("Delete"), | 200 | switch ( QMessageBox::warning(this,tr("Delete"), |
201 | tr("<p>Really delete %1?</p>").arg( myFile ), | 201 | tr("<p>Really delete %1?</p>").arg( myFile ), |
202 | tr("Yes"), tr("No"), 0, 0, 1) ) { | 202 | tr("Yes"), tr("No"), 0, 0, 1) ) { |
203 | case 0; | 203 | case 0: |
204 | break; | 204 | break; |
205 | case 1: | 205 | case 1: |
206 | return; | 206 | return; |
207 | break; | 207 | break; |
208 | default: | 208 | default: |
209 | return; | 209 | return; |
210 | break; | 210 | break; |
211 | }; | 211 | }; |
212 | } | 212 | } |
213 | 213 | ||
214 | QString cmd="rm "+f; | 214 | QString cmd="rm "+f; |
215 | QFile file(f); | 215 | QFile file(f); |
@@ -315,25 +315,25 @@ void AdvancedFm::copy() { | |||
315 | curFile = thisDir->canonicalPath()+"/"+ item; | 315 | curFile = thisDir->canonicalPath()+"/"+ item; |
316 | destFile = thatDir->canonicalPath()+"/"+ item; | 316 | destFile = thatDir->canonicalPath()+"/"+ item; |
317 | 317 | ||
318 | // odebug << "Destination file is "+destFile << oendl; | 318 | // odebug << "Destination file is "+destFile << oendl; |
319 | // odebug << "CurrentFile file is " + curFile << oendl; | 319 | // odebug << "CurrentFile file is " + curFile << oendl; |
320 | 320 | ||
321 | QFile f(destFile); | 321 | QFile f(destFile); |
322 | if( f.exists()) { | 322 | if( f.exists()) { |
323 | if(doMsg) { | 323 | if(doMsg) { |
324 | switch ( QMessageBox::warning(this,tr("File Exists!"), | 324 | switch ( QMessageBox::warning(this,tr("File Exists!"), |
325 | tr("<p>%1 already exists. Ok to overwrite?</P>").arg(item), | 325 | tr("<p>%1 already exists. Ok to overwrite?</P>").arg(item), |
326 | tr("Yes"),tr("No"),0,0,1)) { | 326 | tr("Yes"),tr("No"),0,0,1)) { |
327 | case 0; | 327 | case 0: |
328 | break; | 328 | break; |
329 | case 1: | 329 | case 1: |
330 | return; | 330 | return; |
331 | break; | 331 | break; |
332 | default: | 332 | default: |
333 | return; | 333 | return; |
334 | break; | 334 | break; |
335 | }; | 335 | }; |
336 | } | 336 | } |
337 | f.remove(); | 337 | f.remove(); |
338 | } | 338 | } |
339 | 339 | ||