[prev in list] [next in list] [prev in thread] [next in thread]
List: bzflag-commits
Subject: SF.net SVN: bzflag:[22185] trunk/bzflag/src/bzflag/InputMenu.cxx
From: atupone () users ! sourceforge ! net
Date: 2011-10-28 6:28:45
Message-ID: E1RJfvp-0005Lf-El () sfp-svn-4 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 22185
http://bzflag.svn.sourceforge.net/bzflag/?rev=22185&view=rev
Author: atupone
Date: 2011-10-28 06:28:45 +0000 (Fri, 28 Oct 2011)
Log Message:
-----------
(performance) Possible inefficient checking for 'joystickAxes' emptiness.
Modified Paths:
--------------
trunk/bzflag/src/bzflag/InputMenu.cxx
Modified: trunk/bzflag/src/bzflag/InputMenu.cxx
===================================================================
--- trunk/bzflag/src/bzflag/InputMenu.cxx 2011-10-28 06:27:39 UTC (rev 22184)
+++ trunk/bzflag/src/bzflag/InputMenu.cxx 2011-10-28 06:28:45 UTC (rev 22185)
@@ -157,7 +157,7 @@
std::vector<std::string>* yoptions = &jsy->getList();
std::vector<std::string> joystickAxes;
getMainWindow()->getJoyDeviceAxes(joystickAxes);
- if (joystickAxes.size() == 0)
+ if (joystickAxes.empty())
joystickAxes.push_back("N/A");
int i;
for (i = 0; i < (int)joystickAxes.size(); i++) {
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
BZFlag-commits mailing list
BZFlag-commits@lists.SourceForge.net
https://lists.SourceForge.net/lists/listinfo/bzflag-commits
irc: #BZFlag @ irc.freenode.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic