[mythtv-firehose] mythtv/master commit: 3c65fb2cc by Daniel Kristjansson (daniel-kristjansson)

MythTV noreply at mythtv.org
Tue Aug 23 02:01:42 UTC 2011


      Author:  Daniel Kristjansson <danielk at cuymedia.net>
 Change Date:  2011-08-22T18:59:43-07:00
   Push Date:  2011/08/22 19:01:35 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  3c65fb2cc80d12a6a08d4f2f3bbb93ed31da5a30
   Changeset:  https://github.com/MythTV/mythtv/commit/3c65fb2cc

Log:

Use empty() to check container emptiness.

In some containers empty() is O(1) while size() is O(n), while both are O(1) for vectors it's a good idea to use empty() where possible, since even those vectors may at some point be replaced with a different container if some new algorithm calls for it and empty() is never slower than size().

Modified:

   mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
   mythtv/libs/libmythtv/filtermanager.cpp
   mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp
   mythtv/libs/libmythtv/playercontext.cpp
   mythtv/libs/libmythtv/subtitlescreen.cpp
   mythtv/libs/libmythtv/tv_rec.cpp
   mythtv/libs/libmythtv/videosource.cpp
   mythtv/programs/mythfrontend/globalsettings.cpp
   mythtv/programs/mythfrontend/videofileassoc.cpp
   mythtv/programs/mythfrontend/videolist.cpp
   mythtv/programs/mythfrontend/videoplayercommand.cpp



More information about the mythtv-firehose mailing list