~ci-train-bot/telepathy-ofono/telepathy-ofono-ubuntu-vivid-2451

« back to all changes in this revision

Viewing changes to phoneutils.cpp

  • Committer: Tiago Salem Herrmann
  • Date: 2015-07-23 18:36:05 UTC
  • mto: This revision was merged to the branch mainline in revision 159.
  • Revision ID: tiago.herrmann@canonical.com-20150723183605-xywtb0f6hudhppou
Don't check for emergency numbers. This check must be done by the upper layers. We simply bypass the request to ofono

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    }
134
134
    return true;
135
135
}
136
 
 
137
 
bool PhoneUtils::isEmergencyNumber(const QString &phoneNumber)
138
 
{
139
 
    static const i18n::phonenumbers::ShortNumberUtil short_util;
140
 
    return short_util.IsEmergencyNumber(normalizePhoneNumber(phoneNumber).toStdString(), countryCodeForMCC(mMcc, true).toStdString());
141
 
}