Commit Graph
5 Commits
Author SHA1 Message Date
e7095999df delete four out-of-line declarations that repeat the class body
Each of these says again, outside the class, what the class already declares:

    template <int N>
    void TestTableTemplate<N>::SetRefresh();

SetRefresh and Init are declared as members a few dozen lines above, so these
add nothing. A member named out of line has to be a definition; MSVC lets the
declaration through, clang does not.

None of the three templates ever defines these members generically. Every
instantiation supplies its own, as an explicit specialization next to the
screen that uses it, and those are untouched:

    template<> void DropDownTemplate<DROPDOWNNR_APPEARANCE>::SetRefresh()
                                            { gfIMPPrejudice_Redraw = TRUE; }

The mpSelf lines that follow each of these look similar but are definitions of
a static data member, so they stay.

Verification:

    grep -rn 'Template<N>::' --include=*.h Laptop/    # only mpSelf definitions
    ninja -C build parse         # out-of-line class gone: 28 -> 24 sites
    ninja -C build -k 0          # Release, four applications, green
    ninja -C build-debug -k 0    # Debug, four applications, green

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 19:29:55 -03:00
Flugente 952408b961 Improvements for BaseTable:
- Separator colour can be set
- Fixed column length calculation
- checkboxes are now possible

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8802 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2020-05-17 14:13:57 +00:00
Flugente 70162ece95 Change: In the militia overview laptop website, do not display militia faces, instead colour their names. This way we can display more militia at once without losing information
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8514 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2018-01-04 18:57:33 +00:00
Flugente 41a9c7104d Fix: crash in release exe due to bad initialisation
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8218 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2016-05-16 16:25:32 +00:00
Flugente 9f52c940a8 New feature: individual militia creates small militia profiles that track a militia's history and allow it to be recreated, thereby maintaining the illusion of persistent militia.
Requires GameDir >= r2316.

For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=tree&th=23044&goto=345324&#msg_345324

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8202 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2016-05-06 14:51:24 +00:00