[ios] Warning fixes

This commit is contained in:
Alexander Borsuk 2021-03-12 17:29:22 +01:00 committed by Roman Tsisyk
parent 91ac667662
commit 3f0035d1c7
7 changed files with 11 additions and 11 deletions

View file

@ -40,7 +40,7 @@
return [self.manager getServerId:self.categoryId];
}
- (NSString *)imageUrl {
- (NSURL *)imageUrl {
return [self.manager getCategoryImageUrl:self.categoryId];
}

View file

@ -6,10 +6,6 @@ static BOOL isNightMode = NO;
static NSDictionary<NSString *, UIColor *> *day;
static NSDictionary<NSString *, UIColor *> *night;
static UIColor * color(SEL cmd) {
return (isNightMode ? night : day)[NSStringFromSelector(cmd)];
}
@implementation UIColor (MapsMeColor)
+ (void)load {

View file

@ -12,11 +12,12 @@ static NSString * const kSelectedPattern = @"%@_selected_%@";
[self setDefaultImages];
}
- (void)applyTheme
{
[self changeColoringToOpposite];
[super applyTheme];
}
// This method is overridden by MWMButtonRenderer.swift
//- (void)applyTheme
//{
// [self changeColoringToOpposite];
// [super applyTheme];
//}
- (void)setColoring:(MWMButtonColoring)coloring
{

View file

@ -8,6 +8,7 @@
#include "base/logging.hpp"
#include "editor/osm_auth.hpp"
#import <WebKit/WKNavigationDelegate.h>
#import <WebKit/WKWebView.h>
using namespace osm;

View file

@ -454,6 +454,7 @@ NSString *const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
auto const todo = GetFramework().ToDoAfterUpdate();
switch (todo) {
case Framework::DoAfterUpdate::Migrate:
case Framework::DoAfterUpdate::Nothing:
break;
case Framework::DoAfterUpdate::AutoupdateMaps:

View file

@ -26,7 +26,6 @@ NS_SWIFT_NAME(RoutingManager)
@property(nonatomic, readonly) MWMRouterType type;
@property(nonatomic) MWMSpeedCameraManagerMode speedCameraMode;
- (instancetype)init NS_UNAVAILABLE;
- (void)addListener:(id<MWMRoutingManagerListener>)listener;
- (void)removeListener:(id<MWMRoutingManagerListener>)listener;

View file

@ -38,6 +38,8 @@ struct BaseCellStategy
virtual NSString * TitleForHeader() const { return nil; }
virtual size_t NumberOfRows(MWMTTSSettingsViewController * /* controller */) const { return 1; }
virtual ~BaseCellStategy() {}
};
struct VoiceInstructionCellStrategy : BaseCellStategy