[nemiver/console: 9/11] Factorize 'call' command code
- From: Fabien Parent <fparent src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/console: 9/11] Factorize 'call' command code
- Date: Fri, 2 Mar 2012 16:58:42 +0000 (UTC)
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]