[X2Go-Commits] [x2goclient] 01/01: help.cpp: switch from do { ... } while (...); to just while (...) { ... }.
git-admin at x2go.org
git-admin at x2go.org
Thu Apr 23 00:05:14 CEST 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/help-cmd
in repository x2goclient.
commit abf916195fa7801c4a63f695d0947e6229d7b470
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Apr 23 00:05:06 2015 +0200
help.cpp: switch from do { ... } while (...); to just while (...) { ... }.
---
src/help.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/help.cpp b/src/help.cpp
index fc920c6..6744f8a 100644
--- a/src/help.cpp
+++ b/src/help.cpp
@@ -230,7 +230,7 @@ QString help::pretty_print (help::data_t data) {
QString working_copy (*desc_split_it);
- do {
+ while (!working_copy.isEmpty ()) {
cur_len = working_copy.size ();
x2goDebug << "Trying to fit a (remaining) description " << cur_len << " characters wide." << endl;
@@ -271,7 +271,7 @@ QString help::pretty_print (help::data_t data) {
}
}
}
- } while (!working_copy.isEmpty ());
+ }
}
else {
/* No idea what the terminal size is. Just print it all onto one line. */
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list