From 3174a57569f31c5a35fc9062b42fdbb5b8e791e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Silvio=20Br=C3=A4ndle?= Date: Wed, 26 Mar 2025 14:17:49 +0100 Subject: [PATCH] Fix parameter name mismatch. (#3795) --- cpp/src/phonenumbers/asyoutypeformatter.h | 2 +- cpp/src/phonenumbers/phonenumberutil.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/src/phonenumbers/asyoutypeformatter.h b/cpp/src/phonenumbers/asyoutypeformatter.h index 7360d75b8..3d303c9df 100644 --- a/cpp/src/phonenumbers/asyoutypeformatter.h +++ b/cpp/src/phonenumbers/asyoutypeformatter.h @@ -129,7 +129,7 @@ class AsYouTypeFormatter { // Check to see if there is an exact pattern match for these digits. If so, we // should use this instead of any other formatting template whose // leadingDigitsPattern also matches the input. - void AttemptToFormatAccruedDigits(string* formatted_number); + void AttemptToFormatAccruedDigits(string* formatted_result); // Combines the national number with any prefix (IDD/+ and country code or // national prefix) that was collected. A space will be inserted between them diff --git a/cpp/src/phonenumbers/phonenumberutil.h b/cpp/src/phonenumbers/phonenumberutil.h index d22f997a8..2f13e19e1 100644 --- a/cpp/src/phonenumbers/phonenumberutil.h +++ b/cpp/src/phonenumbers/phonenumberutil.h @@ -251,7 +251,7 @@ class PhoneNumberUtil : public Singleton { // Gets the national significant number of a phone number. Note a national // significant number doesn't contain a national prefix or any formatting. void GetNationalSignificantNumber(const PhoneNumber& number, - string* national_significant_num) const; + string* national_number) const; // Gets the length of the geographical area code from the PhoneNumber object // passed in, so that clients could use it to split a national significant @@ -930,7 +930,7 @@ class PhoneNumberUtil : public Singleton { const PhoneNumber& number, const PhoneMetadata& metadata, PhoneNumberFormat number_format, - string* extension) const; + string* formatted_number) const; void GetRegionCodeForNumberFromRegionList( const PhoneNumber& number, @@ -962,7 +962,7 @@ class PhoneNumberUtil : public Singleton { int ExtractCountryCode(string* national_number) const; ErrorType MaybeExtractCountryCode( const PhoneMetadata* default_region_metadata, - bool keepRawInput, + bool keep_raw_input, string* national_number, PhoneNumber* phone_number) const;