Compilation errors fixing
This commit is contained in:
@@ -279,7 +279,7 @@ void Asset::OnDeleteObject()
|
||||
|
||||
const bool wasMarkedToDelete = _deleteFileOnUnload != 0;
|
||||
#if USE_EDITOR
|
||||
const String path = wasMarkedToDelete ? GetPath() : String::Empty;
|
||||
const String path = wasMarkedToDelete ? GetPath() : StringView::Empty;
|
||||
#endif
|
||||
const Guid id = GetID();
|
||||
|
||||
|
||||
@@ -467,7 +467,7 @@ void BinaryAsset::OnDeleteObject()
|
||||
StringView BinaryAsset::GetPath() const
|
||||
{
|
||||
#if USE_EDITOR
|
||||
return Storage ? Storage->GetPath() : StringView::Empty;
|
||||
return Storage ? StringView(Storage->GetPath()) : StringView::Empty;
|
||||
#else
|
||||
// In build all assets are packed into packages so use ID for original path lookup
|
||||
return Content::GetRegistry()->GetEditorAssetPath(_id);
|
||||
|
||||
@@ -1838,7 +1838,7 @@ void LinuxPlatform::Sleep(int32 milliseconds)
|
||||
|
||||
void LinuxPlatform::Yield()
|
||||
{
|
||||
pthread_yield();
|
||||
sched_yield();
|
||||
}
|
||||
|
||||
double LinuxPlatform::GetTimeSeconds()
|
||||
|
||||
Reference in New Issue
Block a user