[nemiver/console: 9/11] Factorize 'call' command code



commit ac02e013ccdc29a51be3fd35b630f558be4c7528
Author: Fabien Parent <parent f gmail com>
Date:   Fri Mar 2 17:45:43 2012 +0100

    Factorize 'call' command code

 src/dbgengine/nmv-dbg-console.cc |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/dbgengine/nmv-dbg-console.cc b/src/dbgengine/nmv-dbg-console.cc
index cb0ac29..b4f3f21 100644
--- a/src/dbgengine/nmv-dbg-console.cc
+++ b/src/dbgengine/nmv-dbg-console.cc
@@ -277,13 +277,7 @@ struct CommandCall : public Console::SynchronousCommand {
     execute (const std::vector<UString> &a_argv, Console::Stream &a_stream)
     {
         if (a_argv.size ()) {
-            cmd.clear ();
-        }
-
-        for (std::vector<UString>::const_iterator iter = a_argv.begin ();
-             iter != a_argv.end ();
-             ++iter) {
-            cmd += *iter;
+            cmd = str_utils::join (a_argv);
         }
 
         if (cmd.empty ()) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]