Closed Bug 1865867 Opened 10 months ago Closed 10 months ago

ApartmentRegion improvements

Categories

(Core :: IPC: MSCOM, task)

Unspecified
Windows
task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: rkraesig, Assigned: rkraesig)

Details

Attachments

(2 files)

New uses of ApartmentRegion and its derivatives should probably exclude OLE1 by default; and also should be linted against, just like CoInitializeEx.

Modernize and clean up ApartmentRegion.h:

  • Apply all of clang-tidy's suggestions.

  • Rename the template parameter T (which, as a template parameter, is
    typically reserved for types) to AptType.

  • When using ApartmentRegionT, include COINIT_DISABLE_OLE1DDE by
    default. (Out of an abundance of caution, do not do so for
    ApartmentRegion.)

Add a lint (paralleling the existing lint for CoInitializeEx) for new
uses of the utility classes defined in ApartmentRegion.h.

Pushed by rkraesig@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d362774cc826 [1/2] Modernize ApartmentRegion{,T} r=handyman https://hg.mozilla.org/integration/autoland/rev/bc641d1de7e2 [2/2] Add lint for ApartmentRegion and derivatives r=handyman
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: