From 8b8a64c5f9b3e638ee850b3a8a09803328fa7603 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 1 Nov 2015 14:00:28 -0800 Subject: [PATCH] Rename Instance::Transient to Instance::Permament. --- ObjectiveC/Internal.hpp | 4 ++-- ObjectiveC/Library.mm | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ObjectiveC/Internal.hpp b/ObjectiveC/Internal.hpp index 1ac20e2..b731dbb 100644 --- a/ObjectiveC/Internal.hpp +++ b/ObjectiveC/Internal.hpp @@ -45,7 +45,7 @@ struct Instance : { enum Flags { None = 0, - Transient = (1 << 0), + Permanent = (1 << 0), Uninitialized = (1 << 1), }; @@ -79,7 +79,7 @@ struct Super : Class class_; _finline Super(id value, Class _class) : - Instance(value, Instance::Transient), + Instance(value, Instance::Permanent), class_(_class) { } diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index cb95509..24ff4ce 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -413,7 +413,7 @@ JSObjectRef Instance::Make(JSContextRef context, id object, Flags flags) { } Instance::~Instance() { - if ((flags_ & Transient) == 0) + if ((flags_ & Permanent) == 0) [GetValue() release]; } @@ -429,11 +429,11 @@ struct Message_privateData : } }; -JSObjectRef CYMakeInstance(JSContextRef context, id object, bool transient) { +JSObjectRef CYMakeInstance(JSContextRef context, id object, bool permanent) { Instance::Flags flags; - if (transient) - flags = Instance::Transient; + if (permanent) + flags = Instance::Permanent; else { flags = Instance::None; object = [object retain]; -- 2.45.2