aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/Check.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
commit32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 (patch)
tree892b71060a88b58d9293d78033000b05818783df /include/cru/platform/Check.h
parentfaf77949e19dc0d01f75bf8abb783eda70328048 (diff)
downloadcru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.gz
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.bz2
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.zip
Remove String stage 1.
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;