Skip to content

Conversation

akleshchev
Copy link
Contributor

A TPV dev asked to change this, so that ref wouldn't be called on some environments.

A TPV dev asked to change this, so that ref wouldn't be called on some
environments.
@Ansariel
Copy link
Contributor

Ansariel commented Aug 9, 2025

Reason for this change: GCC and older Clang versions will cause an incomplete type compiler error because LLViewerObject is only forward-declared at the point the overloaded constructor of LLPointer is called (in llreflectionmap.h), that internally calls the ref method which then tries to access the object handled by LLPointer.

@vldevel
Copy link
Contributor

vldevel commented Aug 9, 2025

+1

LLPointers are initialized to nullptr in their default constructor, anyway, so they do not need this default assignment in a header, or even in a class constructor.

@akleshchev akleshchev merged commit 8a29c10 into release/2025.06 Aug 11, 2025
11 of 12 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_4334_1 branch August 11, 2025 01:22
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BugSplat Crash: SecondLifeViewer!LLReflectionMap::getIsDynamic(249)

5 participants