aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/Check.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/Check.h')
-rw-r--r--include/cru/platform/Check.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/platform/Check.h b/include/cru/platform/Check.h
index b36b7fc1..6b002c0c 100644
--- a/include/cru/platform/Check.h
+++ b/include/cru/platform/Check.h
@@ -13,7 +13,7 @@ TTarget* CheckPlatform(IPlatformResource* resource,
const auto result = dynamic_cast<TTarget*>(resource);
if (result == nullptr) {
throw PlatformNotMatchException(
- resource->GetPlatformIdUtf8(), target_platform,
+ resource->GetPlatformId(), target_platform,
"Try to convert resource to target platform failed.");
}
return result;
@@ -28,7 +28,7 @@ std::shared_ptr<TTarget> CheckPlatform(const std::shared_ptr<TSource>& resource,
const auto result = std::dynamic_pointer_cast<TTarget>(resource);
if (result == nullptr) {
throw PlatformNotMatchException(
- resource->GetPlatformIdUtf8(), target_platform,
+ resource->GetPlatformId(), target_platform,
"Try to convert resource to target platform failed.");
}
return result;