Mailinglist Archive: yast-commit (723 mails)

< Previous Next >
[yast-commit] r47387 - /trunk/gtk/src/yzyppwrapper.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Fri, 09 May 2008 02:04:14 -0000
  • Message-id: <20080509020415.109122DD84@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Fri May 9 04:04:14 2008
New Revision: 47387

URL: http://svn.opensuse.org/viewcvs/yast?rev=47387&view=rev
Log:
simplified highlight

Modified:
trunk/gtk/src/yzyppwrapper.cc

Modified: trunk/gtk/src/yzyppwrapper.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/yzyppwrapper.cc?rev=47387&r1=47386&r2=47387&view=diff
==============================================================================
--- trunk/gtk/src/yzyppwrapper.cc (original)
+++ trunk/gtk/src/yzyppwrapper.cc Fri May 9 04:04:14 2008
@@ -899,14 +899,7 @@
}

if (match && !highlight) {
- bool full_match = true;
- std::list <std::string>::const_iterator it;
- for (it = values.begin(); it != values.end();
it++)
- if (package->name() != *it) {
- full_match = false;
- break;
- }
- if (full_match)
+ if (values.size() == 1 && values.front() ==
package->name())
highlight = package;
}
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages