Skip to content

Commit

Permalink
Meh, goes back to using m prefix for ivars. Refs #37.
Browse files Browse the repository at this point in the history
  • Loading branch information
gradha committed Jun 4, 2015
1 parent 6bc893f commit 2b5c60d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/SGPS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ enum Accuracy

static private let cInstance: SGPS = SGPS()

private var _saveAllPositions = false
private var _GpsIsOn = false
private var mSaveAllPositions = false
private var mGpsIsOn = false
private var mManager: CLLocationManager
private var mAccuracy: Accuracy
private var mNoLog = false
Expand All @@ -43,7 +43,7 @@ enum Accuracy
if defaults.boolForKey(_GPS_IS_ON_KEY) {
start()
}
_saveAllPositions = defaults.boolForKey(_KEY_SAVE_SINGLE_POSITION)
mSaveAllPositions = defaults.boolForKey(_KEY_SAVE_SINGLE_POSITION)
}

deinit {
Expand All @@ -52,19 +52,19 @@ enum Accuracy
}

var saveAllPositions: Bool {
get { return _saveAllPositions }
get { return mSaveAllPositions }
set {
_saveAllPositions = newValue
mSaveAllPositions = newValue
let defaults = NSUserDefaults.standardUserDefaults()
defaults.setBool(newValue, forKey:_KEY_SAVE_SINGLE_POSITION)
defaults.synchronize()
}
}

var gpsIsOn: Bool {
get { return _GpsIsOn }
get { return mGpsIsOn }
set {
_GpsIsOn = newValue
mGpsIsOn = newValue
let defaults = NSUserDefaults.standardUserDefaults()
defaults.setBool(newValue, forKey:_GPS_IS_ON_KEY)
defaults.synchronize()
Expand Down

0 comments on commit 2b5c60d

Please sign in to comment.