Skip to content

Replace static classes FmDB and FmFuncAdmin by namespaces#38

Merged
kmokstad merged 3 commits intoopenfedem:mainfrom
kmokstad:static-to-namespace
Dec 24, 2025
Merged

Replace static classes FmDB and FmFuncAdmin by namespaces#38
kmokstad merged 3 commits intoopenfedem:mainfrom
kmokstad:static-to-namespace

Conversation

@kmokstad
Copy link

The classes with static methods only are now replaced by equivalent namespaces for the convenience.
The static methods that used to be declared as private (or protected) are now defined in anonymous namespaces in the implementation file instead and therefore do not need be be declared in header files (same with the private attributes), making the header files shorter.

@kmokstad kmokstad force-pushed the static-to-namespace branch 4 times, most recently from d961ce6 to 5c3f324 Compare December 21, 2025 10:56
@kmokstad kmokstad force-pushed the static-to-namespace branch from 5c3f324 to 9a973c5 Compare December 21, 2025 15:27
kmokstad and others added 2 commits December 24, 2025 07:07
Add utility function FmDB::unknownKeyword().
Change the signature of some FmDB functions taking a FmHeadMap pointer
as argument instead of a reference. NULL then defaults to ourHeadMap.
@kmokstad kmokstad merged commit a95ccb3 into openfedem:main Dec 24, 2025
3 of 4 checks passed
@kmokstad kmokstad deleted the static-to-namespace branch December 24, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant