Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2017-03-02 14:22:47 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2017-03-02 14:22:47 +0300
commit506ce7b5bad69ba83620883ee955a9d6def30685 (patch)
treed8535902aab434e855d773c41152a9f0b22bb2ab /partners_api
parentf1d606c8130d3c6f3142298449735991a740e825 (diff)
review fixes
Diffstat (limited to 'partners_api')
-rw-r--r--partners_api/booking_api.cpp4
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();