diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-03-02 14:22:47 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-03-02 14:22:47 +0300 |
commit | 506ce7b5bad69ba83620883ee955a9d6def30685 (patch) | |
tree | d8535902aab434e855d773c41152a9f0b22bb2ab /partners_api | |
parent | f1d606c8130d3c6f3142298449735991a740e825 (diff) |
review fixes
Diffstat (limited to 'partners_api')
-rw-r--r-- | partners_api/booking_api.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/partners_api/booking_api.cpp b/partners_api/booking_api.cpp index d335817c68..32d34bf804 100644 --- a/partners_api/booking_api.cpp +++ b/partners_api/booking_api.cpp @@ -268,16 +268,20 @@ bool RawApi::GetExtendedInfo(string const & hotelId, string const & lang, string string Api::GetBookHotelUrl(string const & baseUrl) const { + ASSERT(!baseUrl.empty(), ()); return GetDescriptionUrl(baseUrl) + "#availability"; } string Api::GetDescriptionUrl(string const & baseUrl) const { + ASSERT(!baseUrl.empty(), ()); return baseUrl + string("?aid=") + BOOKING_AFFILIATE_ID; } string Api::GetHotelReviewsUrl(string const & hotelId, string const & baseUrl) const { + ASSERT(!baseUrl.empty(), ()); + ASSERT(!hotelId.empty(), ()); ostringstream os; os << GetDescriptionUrl(baseUrl) << "&tab=4&label=hotel-" << hotelId << "_reviews"; return os.str(); |