e2f48faf14
Because of the use of std::shared_ptr in lokit_main(), the (singleton) lok::Office (or LibLibreOffice_Impl) object gets destroyed when lokit_main() exits. We shouldn't keep our own copy of a raw pointer to it around. Just call lok_init_2() to get the pointer where we need it. We don't need to call lok_init_2() already in -[AppDelegate application:didFinishLaunchingWithOptions:].
22 lines
619 B
Objective-C
22 lines
619 B
Objective-C
// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*-
|
|
//
|
|
// This file is part of the LibreOffice project.
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <LibreOfficeKit/LibreOfficeKit.h>
|
|
|
|
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
|
|
@property (strong, nonatomic) UIWindow *window;
|
|
|
|
@end
|
|
|
|
extern NSString *app_locale;
|
|
|
|
// vim:set shiftwidth=4 softtabstop=4 expandtab:
|
|
|