forked from qt-creator/qt-creator
Fossil: Make operator== fro RepositorySettings a hidden friend
Change-Id: I82091ddec03ea10ef0fbd5ec2767a8219a2a3a76 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user