From: Dmitry Antipov Date: Thu, 24 Jan 2013 05:56:31 +0000 (+0400) Subject: * nsfont.m (ns_escape_name, ns_unescape_name, ns_registry_to_script): X-Git-Tag: emacs-24.3.90~173^2~7^2~227 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fd3ceb099904ef08ba59ca78c6e501e2cf05125d;p=emacs.git * nsfont.m (ns_escape_name, ns_unescape_name, ns_registry_to_script): Avoid redundant calls to strlen. --- diff --git a/src/ChangeLog b/src/ChangeLog index e89196a15c5..ffa4bdf927f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-01-24 Dmitry Antipov + + * nsfont.m (ns_escape_name, ns_unescape_name, ns_registry_to_script): + Avoid redundant calls to strlen. + 2013-01-24 Dmitry Antipov Drop async_visible and async_iconified fields of struct frame. diff --git a/src/nsfont.m b/src/nsfont.m index 5039f0c9013..ebee363651f 100644 --- a/src/nsfont.m +++ b/src/nsfont.m @@ -75,10 +75,9 @@ static void ns_glyph_metrics (struct nsfont_info *font_info, static void ns_escape_name (char *name) { - int i =0, len =strlen (name); - for ( ; i