mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
fix(core): fix GCC 10 compatibility
With GCC 10, SOGoAptFormatter.m FTBS with the following error:
SOGoAptFormatter.m: In function ‘-[SOGoAptFormatter setPrivateTitleOnly]’:
SOGoAptFormatter.m:104:56: error: expected ‘)’ before ‘::’ token
104 | self->formatAction = @selector(titleOnlyForPrivateApt::);
Simply name the second argument, so gcc is happy.
Also add the `external` keyword to a header declared variable.
Fixes #5029
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
@class WOResponse;
|
@class WOResponse;
|
||||||
|
|
||||||
NSArray *SOGoMailCoreInfoKeys;
|
extern NSArray *SOGoMailCoreInfoKeys;
|
||||||
|
|
||||||
@interface SOGoMailObject : SOGoMailBaseObject
|
@interface SOGoMailObject : SOGoMailBaseObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -65,43 +65,43 @@
|
|||||||
/* accessors */
|
/* accessors */
|
||||||
|
|
||||||
- (void)setTooltip {
|
- (void)setTooltip {
|
||||||
self->formatAction = @selector(tooltipForApt::);
|
self->formatAction = @selector(tooltipForApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setSingleLineFullDetails {
|
- (void)setSingleLineFullDetails {
|
||||||
self->formatAction = @selector(singleLineFullDetailsForApt::);
|
self->formatAction = @selector(singleLineFullDetailsForApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setFullDetails {
|
- (void)setFullDetails {
|
||||||
self->formatAction = @selector(fullDetailsForApt::);
|
self->formatAction = @selector(fullDetailsForApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setPrivateTooltip {
|
- (void)setPrivateTooltip {
|
||||||
self->formatAction = @selector(tooltipForPrivateApt::);
|
self->formatAction = @selector(tooltipForPrivateApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setPrivateDetails {
|
- (void)setPrivateDetails {
|
||||||
self->formatAction = @selector(detailsForPrivateApt::);
|
self->formatAction = @selector(detailsForPrivateApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setTitleOnly {
|
- (void)setTitleOnly {
|
||||||
self->formatAction = @selector(titleForApt::);
|
self->formatAction = @selector(titleForApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setShortTitleOnly {
|
- (void)setShortTitleOnly {
|
||||||
self->formatAction = @selector(shortTitleForApt::);
|
self->formatAction = @selector(shortTitleForApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setShortMonthTitleOnly {
|
- (void)setShortMonthTitleOnly {
|
||||||
self->formatAction = @selector(shortMonthTitleForApt::);
|
self->formatAction = @selector(shortMonthTitleForApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setPrivateSuppressAll {
|
- (void)setPrivateSuppressAll {
|
||||||
self->formatAction = @selector(suppressApt::);
|
self->formatAction = @selector(suppressApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setPrivateTitleOnly {
|
- (void)setPrivateTitleOnly {
|
||||||
self->formatAction = @selector(titleOnlyForPrivateApt::);
|
self->formatAction = @selector(titleOnlyForPrivateApt:_refDate:);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setPrivateTitle:(NSString *)_privateTitle {
|
- (void)setPrivateTitle:(NSString *)_privateTitle {
|
||||||
|
|||||||
Reference in New Issue
Block a user