~pitti/autopilot-gtk/unsupported-type-warning

Viewing all changes in revision 61.1.1.

  • Committer: Martin Pitt
  • Date: 2013-11-26 12:35:30 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: martin.pitt@ubuntu.com-20131126123530-um0mogvp8aew1iwp
Avoid unnecessary temporary std::string 

In GtkNode::MatchStringProperty(), drop the temporary and unnecessary
std::string duplication of the property value; instead, compare the C string
directly. This avoids copying the string, and also seems to avoid a rare crash
when destroying the std::string at the end of the function.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: