diff options
| author | nyamatongwe <unknown> | 2013-03-15 20:37:27 +1100 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2013-03-15 20:37:27 +1100 |
| commit | 9b1adea4079a2384f93acb83bd4d1a7a7b709819 (patch) | |
| tree | 57738da28b70caf2db461621730064b40323558b /cocoa/ScintillaCocoa.mm | |
| parent | 39afe073dae7d7bb6058ab0a3c86c661381f14b6 (diff) | |
| download | scintilla-mirror-9b1adea4079a2384f93acb83bd4d1a7a7b709819.tar.gz | |
Added type safety by using InnerView where applicable instead of generic NSView.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index a80361ce4..56de63d9c 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -379,7 +379,7 @@ const CGFloat paddingHighlightY = 2; //----------------- ScintillaCocoa ----------------------------------------------------------------- -ScintillaCocoa::ScintillaCocoa(NSView* view) +ScintillaCocoa::ScintillaCocoa(InnerView* view) { wMain = view; // Don't retain since we're owned by view, which would cause a cycle timerTarget = [[TimerTarget alloc] init: this]; @@ -686,9 +686,9 @@ ScintillaView* ScintillaCocoa::TopContainer() /** * Helper function to get the inner container which represents the actual "canvas" we work with. */ -NSView* ScintillaCocoa::ContentView() +InnerView* ScintillaCocoa::ContentView() { - return static_cast<NSView*>(wMain.GetID()); + return static_cast<InnerView*>(wMain.GetID()); } //-------------------------------------------------------------------------------------------------- |
