mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 21:22:44 +00:00
[ASPendingState] Give local variables default values
This commit is contained in:
@@ -122,8 +122,8 @@ typedef struct {
|
||||
ASDISPLAYNODE_INLINE void ASPendingStateApplyMetricsToLayer(_ASPendingState *state, CALayer *layer) {
|
||||
ASPendingStateFlags flags = state->_flags;
|
||||
if (flags.setFrame) {
|
||||
CGRect _bounds;
|
||||
CGPoint _position;
|
||||
CGRect _bounds = CGRectZero;
|
||||
CGPoint _position = CGPointZero;
|
||||
ASBoundsAndPositionForFrame(state->frame, layer.bounds.origin, layer.anchorPoint, &_bounds, &_position);
|
||||
layer.bounds = _bounds;
|
||||
layer.position = _position;
|
||||
|
||||
Reference in New Issue
Block a user