Fossil: Make operator== fro RepositorySettings a hidden friend

Change-Id: I82091ddec03ea10ef0fbd5ec2767a8219a2a3a76
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2023-05-15 11:32:51 +02:00
parent e6d574ee77
commit ef4fa870fc

View File

@@ -33,14 +33,14 @@ struct RepositorySettings
QString user; QString user;
QString sslIdentityFile; QString sslIdentityFile;
AutosyncMode autosync = AutosyncOn; AutosyncMode autosync = AutosyncOn;
};
inline bool operator==(const RepositorySettings &lh, const RepositorySettings &rh) friend bool operator==(const RepositorySettings &lh, const RepositorySettings &rh)
{ {
return (lh.user == rh.user && return lh.user == rh.user
lh.sslIdentityFile == rh.sslIdentityFile && && lh.sslIdentityFile == rh.sslIdentityFile
lh.autosync == rh.autosync); && lh.autosync == rh.autosync;
} }
};
class OptionsPage : public Core::IOptionsPage class OptionsPage : public Core::IOptionsPage
{ {