Spell !.size() as .empty().

This commit is contained in:
Axel Naumann 2015-03-20 10:48:29 +01:00 committed by sftnight
parent 1d2d6e8650
commit 8497d89e4a

View File

@ -149,7 +149,7 @@ namespace cling {
///\brief Returns the first transaction the incremental parser saw.
///
const Transaction* getFirstTransaction() const {
if (!m_Transactions.size())
if (m_Transactions.empty())
return 0;
return m_Transactions.front();
}
@ -157,7 +157,7 @@ namespace cling {
///\brief Returns the last transaction the incremental parser saw.
///
Transaction* getLastTransaction() {
if (!m_Transactions.size())
if (m_Transactions.empty())
return 0;
return m_Transactions.back();
}
@ -165,7 +165,7 @@ namespace cling {
///\brief Returns the last transaction the incremental parser saw.
///
const Transaction* getLastTransaction() const {
if (!m_Transactions.size())
if (m_Transactions.empty())
return 0;
return m_Transactions.back();
}