Skip to content

Clean up LLUI and fix/add suggestions from VS #3933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

Ansariel
Copy link
Contributor

Yet another restored missing contribution from old develop branch.

# Conflicts:
#	indra/llui/lltextbase.h
#	indra/llui/lltexteditor.h
#	indra/llwindow/llwindowsdl.cpp
@Geenz
Copy link
Collaborator

Geenz commented Apr 18, 2025

This looks fine, but I'm gonna take some time to go through it to make sure I understand the gist of it. Maybe see if this copilot code review feature is worth a damn while I'm at it. It looks like it's some more or less straightforward cleanup, just it touches a lot of files for stuff like const correctness.

@Geenz Geenz requested a review from Copilot April 18, 2025 00:01
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR cleans up the LLUI code by adding const qualifiers to member functions and updating constant definitions, while also removing unused functions suggested by VS.

  • Added const qualifiers where appropriate
  • Updated several constant definitions to use constexpr
  • Removed obsolete functions that are no longer in use

Reviewed Changes

Copilot reviewed 68 out of 68 changed files in this pull request and generated no comments.

Show a summary per file
File Description
indra/llui/llkeywords.cpp Added const qualifier to getColorGroup
indra/llui/llfolderviewitem.h Added const qualifier to isSingleFolderMode and removed resort function
indra/llui/llfolderview.h Added const qualifiers to various getters
indra/llui/llfocusmgr.h Added const qualifier to getKeystrokesOnly
indra/llui/llflyoutbutton.h Replaced virtual draw() with override
indra/llui/llfloaterreglistener.h Removed unneeded include
indra/llui/llfloater.h Updated constant definitions to constexpr and added const qualifiers to getters; removed createMinimizeButton()
indra/llui/llfloater.cpp Added const qualifier to getCanDrag
indra/llui/llflatlistview.h Added const qualifier to getters
indra/llui/llflatlistview.cpp Added const qualifier to getForceShowingUnmatchedItems()
indra/llui/llflashtimer.h & .cpp Added const qualifiers to timer status functions
indra/llui/llfiltereditor.h Updated handleKeystroke() to use override keyword
indra/llui/lldraghandle.h Added const qualifier to getButtonsRect
indra/llui/lldockcontrol.h & .cpp Added const qualifiers to relevant getters
indra/llui/lldockablefloater.h Added const qualifiers to docking related getters
indra/llui/llcontainerview.h Added override qualifiers for virtual functions
indra/llui/llcheckboxctrl.h Updated constant definitions to constexpr and added const qualifier to get()
indra/llui/llaccordionctrltab.h Added const qualifiers to getters
Comments suppressed due to low confidence (2)

indra/llui/llfolderviewitem.h:417

  • Ensure that the removal of the 'resort' function is intentional and that any dependent calls have been refactored accordingly.
void resort(LLFolderViewItem* item);

indra/llui/llfloater.h:427

  • Verify that the removal of 'createMinimizeButton' is intentional and that its functionality is being handled elsewhere.
void createMinimizeButton();

Copy link
Collaborator

@Geenz Geenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@Geenz Geenz merged commit c0ecfce into secondlife:develop Apr 18, 2025
9 of 11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2025
@Ansariel Ansariel deleted the develop-llui-improvements branch April 18, 2025 00:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants