@@ -675,7 +675,7 @@ class APClient {
675
675
return BLANK;
676
676
}
677
677
678
- std::string get_location_name (int64_t code, const std::string& game= " " )
678
+ std::string get_location_name (int64_t code, const std::string& game)
679
679
{
680
680
if (game.empty ()) { // old code path ("global" ids)
681
681
auto it = _locations.find (code);
@@ -693,6 +693,12 @@ class APClient {
693
693
return " Unknown" ;
694
694
}
695
695
696
+ [[deprecated(" Use the overload that explicitly takes game argument" )]]
697
+ std::string get_location_name (int64_t code)
698
+ {
699
+ return get_location_name (code, " " );
700
+ }
701
+
696
702
/* Usage is not recommended
697
703
* Return the id associated with the location name
698
704
* Return APClient::INVALID_NAME_ID when undefined*/
@@ -707,7 +713,7 @@ class APClient {
707
713
return INVALID_NAME_ID;
708
714
}
709
715
710
- std::string get_item_name (int64_t code, const std::string& game= " " )
716
+ std::string get_item_name (int64_t code, const std::string& game)
711
717
{
712
718
if (game.empty ()) { // old code path ("global" ids)
713
719
auto it = _items.find (code);
@@ -725,6 +731,12 @@ class APClient {
725
731
return " Unknown" ;
726
732
}
727
733
734
+ [[deprecated(" Use the overload that explicitly takes game argument" )]]
735
+ std::string get_item_name (int64_t code)
736
+ {
737
+ return get_item_name (code, " " );
738
+ }
739
+
728
740
/* Usage is not recommended
729
741
* Return the id associated with the item name
730
742
* Return APClient::INVALID_NAME_ID when undefined*/
0 commit comments