diff options
author | Patrick Benavoli <patrick.benavoli@intel.com> | 2014-07-23 01:27:00 +0200 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-04-24 13:39:13 -0700 |
commit | 911844b16c6b627f421bc3368de427de3ca9f60c (patch) | |
tree | 223697b3ea168eca090cd06a673c7dbb7dea27de /parameter/MappingContext.cpp | |
parent | 9ad87f08eb4cfa8752f4b9e7b9deb3bd219ff591 (diff) | |
download | external_parameter-framework-911844b16c6b627f421bc3368de427de3ca9f60c.zip external_parameter-framework-911844b16c6b627f421bc3368de427de3ca9f60c.tar.gz external_parameter-framework-911844b16c6b627f421bc3368de427de3ca9f60c.tar.bz2 |
Type mismatch corrections (Windows 64 bits)
This patch removes the type mismatch warnings revealed by Windows 64
compiler. Wherever necessary, used size_t type for size related data.
Change-Id: Ie045ce95940cd83fe8d681168ac9526fc6028d43
Signed-off-by: Patrick Benavoli <patrick.benavoli@intel.com>
Diffstat (limited to 'parameter/MappingContext.cpp')
-rw-r--r-- | parameter/MappingContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parameter/MappingContext.cpp b/parameter/MappingContext.cpp index b627051..045fbd7 100644 --- a/parameter/MappingContext.cpp +++ b/parameter/MappingContext.cpp @@ -34,7 +34,7 @@ using std::string; -CMappingContext::CMappingContext(uint32_t uiNbItemTypes) : _pstItemArray(new CMappingContext::SItem[uiNbItemTypes]), _uiNbItemTypes(uiNbItemTypes) +CMappingContext::CMappingContext(size_t uiNbItemTypes) : _pstItemArray(new CMappingContext::SItem[uiNbItemTypes]), _uiNbItemTypes(uiNbItemTypes) { // Clear items memset(_pstItemArray, 0, sizeof(*_pstItemArray) * uiNbItemTypes); @@ -76,7 +76,7 @@ CMappingContext& CMappingContext::operator=(const CMappingContext& right) // Item access bool CMappingContext::setItem(uint32_t uiItemType, const string* pStrKey, const string* pStrItem) { - uint32_t uiIndex; + size_t uiIndex; // Do some checks for (uiIndex = 0; uiIndex < _uiNbItemTypes; uiIndex++) { @@ -120,7 +120,7 @@ uint32_t CMappingContext::getItemAsInteger(uint32_t uiItemType) const const string* CMappingContext::getItem(const string& strKey) const { - uint32_t uiItemType; + size_t uiItemType; for (uiItemType = 0; uiItemType < _uiNbItemTypes; uiItemType++) { |