Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Feb 19, 2024
1 parent 6e331ac commit 390f63b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/include/Ice/Comparable.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ inline bool targetNotEqualTo(const T& lhs, const U& rhs)

/**
* Functor class that compares the contents of two smart pointers (or similar) of the given type using the given
* comparator. It provides partial specializations for std::shared and std::optional.
* comparator. It provides partial specializations for std::shared_ptr and std::optional.
* \headerfile Ice/Ice.h
*/
template<typename T, template<typename> class Compare>
Expand Down
4 changes: 2 additions & 2 deletions cpp/include/Ice/MetricsObserverI.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ template<typename T> class MetricsHelperT
static const std::string
toString(const Ice::ObjectPrx& p)
{
return p->ice_toString();
return p->ice_toString();
}

template<typename Prx, std::enable_if_t<std::is_base_of<Ice::ObjectPrx, Prx>::value, bool> = true>
static const std::string
toString(const std::optional<Prx>& p)
{
return p ? toString(p.value()) : "";
return p ? toString(p.value()) : "";
}

static const std::string&
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/Ice/Proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ inline ReferencePtr createReference(const shared_ptr<Communicator>& communicator
ReferencePtr ref = getInstance(communicator)->referenceFactory()->create(proxyString, "");
if (!ref)
{
throw std::invalid_argument("invalid proxyString");
throw std::invalid_argument("invalid proxy string");
}
return ref;
}
Expand Down
1 change: 1 addition & 0 deletions cpp/src/Ice/RequestHandlerCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ RequestHandlerCache::handleException(
}

// gcc complains without this return statement.
assert(false);
return 0;
}
}

0 comments on commit 390f63b

Please sign in to comment.