Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCHAR置き換え #1983

Merged
merged 1 commit into from
Feb 8, 2025
Merged

Conversation

gorogoro123
Copy link
Contributor

PR対象

  • アプリ(サクラエディタ本体)

カテゴリ

  • 改善

PR の背景

TCHARからWCHARに置き換えられましたが、まだTCHARが残っています。

仕様・動作説明

残りのTCHARをWCHARに置き換えます。

PR の影響範囲

影響なし。

テスト内容

  1. 変更前後のasmを比較して同じであることを確認する。
  2. "TCHAR"を検索して、残ってないことを確認する。
  3. 型チェックする。
    static_assert(std::is_same<WCHAR, WIN_CHAR>::value);
    static_assert(std::is_same<WCHAR, TCHAR>::value);

関連 issue, PR

#1034

参考資料

https://learn.microsoft.com/ja-jp/windows/win32/learnwin32/working-with-strings

Copy link

sonarqubecloud bot commented Feb 7, 2025

@AppVeyorBot
Copy link

Copy link
Contributor

@beru beru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ざっとしか見てませんが問題無いと思います。

ところで TCHAR を使わずに WCHAR を使うのであればマクロ経由にせずに末尾WのWindowsAPIを直接呼び出しても良いのかも?と思いました。もちろんこのPRで行う必要はなく、今後本当にやるべきかもよくわかりません。

@beru beru merged commit 3c7353d into sakura-editor:master Feb 8, 2025
25 checks passed
@gorogoro123 gorogoro123 deleted the feature/fix_tchar branch February 8, 2025 08:56
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.

5 participants