2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -1552,11 +1552,7 @@ Link::Link(
_title = _page->title;
}
#ifndef OS_MAC_OLD
auto parts = mainUrl.splitRef('/');
#else // OS_MAC_OLD
auto parts = mainUrl.split('/');
#endif // OS_MAC_OLD
if (!parts.isEmpty()) {
auto domain = parts.at(0);
if (parts.size() > 2 && domain.endsWith(':') && parts.at(1).isEmpty()) { // http:// and others