Renamed pg_libphonenumber to pg-libphonenumber

This commit is contained in:
BLM 2015-07-14 15:43:27 -05:00
parent e6f470a244
commit d14ab5d435
2 changed files with 2 additions and 4 deletions

View File

@ -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++

View File

@ -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) {