Fix build under R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18367 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -167,7 +167,20 @@ StyledEditView::GetStyledText(BPositionIO* stream)
|
|||||||
|
|
||||||
// ... and here we restore it
|
// ... and here we restore it
|
||||||
SetRunArray(0, length, runArray);
|
SetRunArray(0, length, runArray);
|
||||||
|
|
||||||
|
#ifdef HAIKU_TARGET_PLATFORM_BEOS
|
||||||
|
// FreeRunArray does not exist on R5
|
||||||
|
|
||||||
|
// Call destructors explicitly
|
||||||
|
for (int32 i = 0; i < runArray->count; i++)
|
||||||
|
runArray->runs[i].font.~BFont();
|
||||||
|
|
||||||
|
free(runArray);
|
||||||
|
|
||||||
|
#else
|
||||||
FreeRunArray(runArray);
|
FreeRunArray(runArray);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user