Skip to content

Commit

Permalink
fix(Any): #3297 #3514
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Apr 13, 2022
1 parent 4080ee2 commit 7ae6b60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Foundation/include/Poco/Any.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,10 @@ ValueType AnyCast(Any& operand)
if (!result)
{
std::string s = "RefAnyCast: Failed to convert between Any types ";
if (operand._pHolder)
if (operand.content())
{
s.append(1, '(');
s.append(operand._pHolder->type().name());
s.append(operand.content()->type().name());
s.append(" => ");
s.append(typeid(ValueType).name());
s.append(1, ')');
Expand Down Expand Up @@ -564,10 +564,10 @@ const ValueType& RefAnyCast(const Any & operand)
if (!result)
{
std::string s = "RefAnyCast: Failed to convert between Any types ";
if (operand._pHolder)
if (operand.content())
{
s.append(1, '(');
s.append(operand._pHolder->type().name());
s.append(operand.content()->type().name());
s.append(" => ");
s.append(typeid(ValueType).name());
s.append(1, ')');
Expand All @@ -589,10 +589,10 @@ ValueType& RefAnyCast(Any& operand)
if (!result)
{
std::string s = "RefAnyCast: Failed to convert between Any types ";
if (operand._pHolder)
if (operand.content())
{
s.append(1, '(');
s.append(operand._pHolder->type().name());
s.append(operand.content()->type().name());
s.append(" => ");
s.append(typeid(ValueType).name());
s.append(1, ')');
Expand Down

0 comments on commit 7ae6b60

Please sign in to comment.