From eb464b67a9ea3ba12056d8f8353d28833dfe68e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 21 Nov 2011 00:27:40 +0200 Subject: Use empty() instead of size() to check container emptiness. --- status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'status.c') diff --git a/status.c b/status.c index bb04424..5ecd7c8 100644 --- a/status.c +++ b/status.c @@ -396,7 +396,7 @@ cxType cText2SkinStatus::GetTokenData(const txToken &Token) return mRecordings.size() > (uint)Token.Attrib.Number ? (cxType)mRecordings[Token.Attrib.Number] : (cxType)false; - } else if (mRecordings.size() > 0) { + } else if (!mRecordings.empty()) { mRecordingsLock.Lock(); uint now = cTimeMs::Now(); if (mCurrentRecording >= mRecordings.size()) -- cgit v1.2.3