Adjust Boost.Locale patch to use NULL instead of nullptr

This commit is contained in:
Jonathan Wakely 2021-03-03 12:05:16 +00:00
commit 394a768911
2 changed files with 6 additions and 3 deletions

View file

@ -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());