Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Issue 405023: Small cleanups:... (Closed)

Created:
11 years, 1 month ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Small cleanups: * SplitUrlAndTitle() can't fail, so it doesn't need to return a bool. * assign() can do substrings in one shot * Half the code used "*str =" and half "str->assign()", often right next to each other; pick one for consistency * No need to calculate array sizes when we're the ones declaring them * Use early return in a few places BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32414

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -55 lines) Patch
M app/clipboard/clipboard_util_win.cc View 1 6 chunks +41 lines, -55 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Peter Kasting
11 years, 1 month ago (2009-11-18 21:48:42 UTC) #1
tony
11 years, 1 month ago (2009-11-18 21:53:40 UTC) #2
LGTM!

Powered by Google App Engine
This is Rietveld 408576698