2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Get rid of osx and linux32 special targets

This commit is contained in:
Ilya Fedin
2021-08-11 06:27:26 +04:00
committed by John Preston
parent 1d2e34f5e9
commit 97262a99c7
48 changed files with 19 additions and 267 deletions

View File

@@ -177,11 +177,7 @@ uint32 ParseOccupationTag(History *history) {
return 0;
}
const auto &text = draft->textWithTags.text;
#ifndef OS_MAC_OLD
const auto parts = text.splitRef(';');
#else // OS_MAC_OLD
const auto parts = text.split(';');
#endif // OS_MAC_OLD
auto valid = false;
auto result = uint32();
for (const auto &part : parts) {
@@ -207,11 +203,7 @@ QString ParseOccupationName(History *history) {
return QString();
}
const auto &text = draft->textWithTags.text;
#ifndef OS_MAC_OLD
const auto parts = text.splitRef(';');
#else // OS_MAC_OLD
const auto parts = text.split(';');
#endif // OS_MAC_OLD
auto valid = false;
auto result = QString();
for (const auto &part : parts) {
@@ -222,11 +214,7 @@ QString ParseOccupationName(History *history) {
return 0;
}
} else if (part.startsWith(qstr("n:"))) {
#ifndef OS_MAC_OLD
result = part.mid(2).toString();
#else // OS_MAC_OLD
result = part.mid(2);
#endif // OS_MAC_OLD
}
}
return valid ? result : QString();
@@ -241,11 +229,7 @@ TimeId OccupiedBySomeoneTill(History *history) {
return 0;
}
const auto &text = draft->textWithTags.text;
#ifndef OS_MAC_OLD
const auto parts = text.splitRef(';');
#else // OS_MAC_OLD
const auto parts = text.split(';');
#endif // OS_MAC_OLD
auto valid = false;
auto result = TimeId();
for (const auto &part : parts) {