nemiver r981 - in trunk: . src/persp/dbgperspective
- From: dodji svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r981 - in trunk: . src/persp/dbgperspective
- Date: Sat, 14 Feb 2009 14:03:20 +0000 (UTC)
Author: dodji
Date: Sat Feb 14 14:03:20 2009
New Revision: 981
URL: http://svn.gnome.org/viewvc/nemiver?rev=981&view=rev
Log:
Avoid duplicates in call function dialog history.
* src/persp/dbgperspective/nmv-dbg-perspective.cc:
(DBGPerspective::call_function): Avoid duplicates in call function
dialog history.
Modified:
trunk/ChangeLog
trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc (original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc Sat Feb 14 14:03:20 2009
@@ -5846,7 +5846,12 @@
return;
// Update our copy of call expression history.
- m_priv->call_expr_history.push_front (call_expr);
+ list<UString>::iterator from = m_priv->call_expr_history.begin (),
+ to = m_priv->call_expr_history.end (),
+ nil = to;
+
+ if (std::find (from, to, call_expr) == nil)
+ m_priv->call_expr_history.push_front (call_expr);
// Really execute the function call expression now.
call_function (call_expr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]