Adjust Boost.Locale patch to use NULL instead of nullptr
This commit is contained in:
parent
325ac22f96
commit
394a768911
2 changed files with 6 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ index 7f1ea6a..dc59e8c 100644
|
|||
tmp.resize(str.length());
|
||||
icu::Collator *collate = get_collator(level);
|
||||
- int len = collate->getSortKey(str,&tmp[0],tmp.size());
|
||||
+ int len = collate->getSortKey(str,tmp.empty()?nullptr:&tmp[0],tmp.size());
|
||||
+ int len = collate->getSortKey(str,tmp.empty()?NULL:&tmp[0],tmp.size());
|
||||
if(len > int(tmp.size())) {
|
||||
tmp.resize(len);
|
||||
collate->getSortKey(str,&tmp[0],tmp.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue