Skip to content

Feature/2465 2466#2491

Closed
uzanka wants to merge 2 commits into
sakura-editor:masterfrom
uzanka:feature/2465-2466
Closed

Feature/2465 2466#2491
uzanka wants to merge 2 commits into
sakura-editor:masterfrom
uzanka:feature/2465-2466

Conversation

@uzanka

@uzanka uzanka commented Jun 16, 2026

Copy link
Copy Markdown

PR対象

  • アプリ(サクラエディタ本体)
  • テストコード

カテゴリ

  • 改善
  • 不具合修正

PR の背景

GitHub #2465
GitHub #2466

仕様・動作説明

  • SysString
    operator=で更新前情報を解放する。更新後情報の確保で失敗し例外が発生する場合は更新前情報の状態となる。
    operator=で自分自身を指定した場合には何もしない。

  • Variant
    コンストラクタでメンバ変数を初期化する。
    operator=で更新前情報を解放する。更新後情報の確保で失敗し例外が発生する場合は更新前情報の状態となる。
    operator=で自分自身を指定した場合には何もしない。

PR の影響範囲

Releaseモードだとメンバ変数が初期化されるため問題が起きないのだろう。
サクラエディタのソースでは自分自身を指定するoperator=がないため問題が起きない。
メモリリークが発生しなくなる。

テスト内容

OleTypes.h(SysString, Variant)のテストがないため、全メソッドのテストを記載する。

関連 issue, PR

参考資料

@github-actions

Copy link
Copy Markdown

Test Results

1 107 tests  +9   1 107 ✅ +9   5m 45s ⏱️ + 1m 2s
  105 suites +2       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit f129e21. ± Comparison against base commit 71514c3.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
77.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@berryzplus

Copy link
Copy Markdown
Contributor

もしかして、こちらがダメなやつ?

@uzanka uzanka closed this by deleting the head repository Jun 17, 2026
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.

2 participants