diff options
author | h.udo <hudokkow@gmail.com> | 2015-11-05 21:50:49 +0000 |
---|---|---|
committer | h.udo <hudokkow@gmail.com> | 2015-12-20 17:56:09 +0000 |
commit | e63b70dbb8c77f1052cc8f54e13d5388237debc3 (patch) | |
tree | 34b3b506e84b87b1d969be1af71ef0c681fd77bb /tools/EventClients/lib/c++ | |
parent | 585fc74985f98530f79a406dfc70758cb092469d (diff) |
Prefer empty() over size() == 0
Diffstat (limited to 'tools/EventClients/lib/c++')
-rw-r--r-- | tools/EventClients/lib/c++/xbmcclient.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tools/EventClients/lib/c++/xbmcclient.h b/tools/EventClients/lib/c++/xbmcclient.h index e51c888fdd..86e4b4a75d 100644 --- a/tools/EventClients/lib/c++/xbmcclient.h +++ b/tools/EventClients/lib/c++/xbmcclient.h @@ -2,21 +2,23 @@ #define __XBMC_CLIENT_H__ /* - * Copyright (C) 2008-2013 Team XBMC + * Copyright (C) 2008-2015 Team Kodi + * http://kodi.tv * - * This program is free software; you can redistribute it and/or modify + * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * the Free Software Foundation; either version 2, or (at your option) + * any later version. * - * This program is distributed in the hope that it will be useful, + * This Program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * You should have received a copy of the GNU General Public License + * along with Kodi; see the file COPYING. If not, see + * <http://www.gnu.org/licenses/>. + * */ #include <stdio.h> @@ -200,7 +202,7 @@ public: bool Send(int Socket, CAddress &Addr, unsigned int UID = XBMCClientUtils::GetUniqueIdentifier()) { - if (m_Payload.size() == 0) + if (m_Payload.empty()) ConstructPayload(); bool SendSuccessfull = true; int NbrOfPackages = (m_Payload.size() / MAX_PAYLOAD_SIZE) + 1; |