1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ComponentPeer: Deprecate getFrameSize()

This commit is contained in:
attila 2022-01-27 13:19:13 +01:00
parent 454ff64631
commit 6575d24a81
8 changed files with 67 additions and 10 deletions

View file

@ -983,7 +983,8 @@ private:
const auto windowBorders = [&]() -> BorderSize<int>
{
if (auto* peer = owner.getPeer())
return peer->getFrameSize();
if (const auto frameSize = peer->getFrameSizeIfPresent())
return *frameSize;
return {};
}();