loplugin:findoncontainer

Change-Id: Ie32abd917bf86ab0c44be80a00e5f35354bc3cdc
This commit is contained in:
Noel Grandin
2015-12-15 09:11:30 +02:00
parent 87c9465262
commit 2c0a010b19

View File

@@ -2671,8 +2671,7 @@ void ChartExport::_exportAxis(
}
// only export each axis only once non-deleted
bool bDeleted = std::find(maExportedAxis.begin(),
maExportedAxis.end(), rAxisIdPair.nAxisType) != maExportedAxis.end();
bool bDeleted = maExportedAxis.find(rAxisIdPair.nAxisType) != maExportedAxis.end();
if (!bDeleted)
maExportedAxis.insert(rAxisIdPair.nAxisType);