Renamed pg_libphonenumber to pg-libphonenumber
This commit is contained in:
parent
e6f470a244
commit
d14ab5d435
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
||||||
MODULE_big := pg_libphonenumber
|
MODULE_big := pg-libphonenumber
|
||||||
OBJS := pg_libphonenumber.o
|
OBJS := pg-libphonenumber.o
|
||||||
PG_CPPFLAGS := -fPIC -std=c++11
|
PG_CPPFLAGS := -fPIC -std=c++11
|
||||||
SHLIB_LINK := -lphonenumber -lstdc++
|
SHLIB_LINK := -lphonenumber -lstdc++
|
||||||
|
|
||||||
|
|
|
@ -99,8 +99,6 @@ extern "C" {
|
||||||
std::string formatted;
|
std::string formatted;
|
||||||
char *result;
|
char *result;
|
||||||
|
|
||||||
formatted.resize(20, ' ');
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
phoneUtil->Format(*number, PhoneNumberUtil::INTERNATIONAL, &formatted);
|
phoneUtil->Format(*number, PhoneNumberUtil::INTERNATIONAL, &formatted);
|
||||||
} catch(std::bad_alloc& e) {
|
} catch(std::bad_alloc& e) {
|
Loading…
Reference in New Issue