Bug 1079319 - Fix some more bad implicit constructors in intl; r=smontagu

This commit is contained in:
Ehsan Akhgari 2014-09-24 09:16:53 -04:00
parent 87d062a280
commit 1feb66dfab
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace {
struct PropertyComparator
{
const nsCString& mKey;
PropertyComparator(const nsCString& aKey) : mKey(aKey) {}
explicit PropertyComparator(const nsCString& aKey) : mKey(aKey) {}
int operator()(const char* (&aProperty)[3]) const {
return mKey.Compare(aProperty[0]);
}

View File

@ -242,7 +242,7 @@ namespace {
struct SequenceAdaptor
{
const composition* const mSequence;
SequenceAdaptor(const composition* aSequence) : mSequence(aSequence) {}
explicit SequenceAdaptor(const composition* aSequence) : mSequence(aSequence) {}
uint32_t operator[](size_t aIdx) const {
return mSequence[aIdx].c2;
}