mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: make TrackableObject::weak_map_id() constexpr (#47092)
* refactor: make TrackableObject::weak_map_id() constexpr refactor: make BaseWindow::GetID() inline and constexpr * refactor: make NativeWindow::window_id() constexpr too
This commit is contained in:
@@ -261,7 +261,7 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
|
||||
void SetTitleBarOverlay(const gin_helper::Dictionary& options,
|
||||
gin_helper::Arguments* args);
|
||||
#endif
|
||||
int32_t GetID() const;
|
||||
[[nodiscard]] constexpr int32_t GetID() const { return weak_map_id(); }
|
||||
|
||||
private:
|
||||
// Helpers.
|
||||
|
||||
Reference in New Issue
Block a user