mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Move to std::optional.
This commit is contained in:
@@ -2852,7 +2852,7 @@ void InputField::commitInstantReplacement(
|
||||
int from,
|
||||
int till,
|
||||
const QString &with,
|
||||
base::optional<QString> checkOriginal) {
|
||||
std::optional<QString> checkOriginal) {
|
||||
const auto original = getTextWithTagsPart(from, till).text;
|
||||
if (checkOriginal
|
||||
&& checkOriginal->compare(original, Qt::CaseInsensitive) != 0) {
|
||||
|
Reference in New Issue
Block a user