Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
f2be27d3
Commit
f2be27d3
authored
Apr 06, 2015
by
Jacob Potter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerate generated source in example/
parent
41b38086
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
example/generated-src/objc/TXSItemList.h
example/generated-src/objc/TXSItemList.h
+2
-2
example/generated-src/objc/TXSItemList.mm
example/generated-src/objc/TXSItemList.mm
+7
-5
No files found.
example/generated-src/objc/TXSItemList.h
View file @
f2be27d3
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
@interface
TXSItemList
:
NSObject
@interface
TXSItemList
:
NSObject
-
(
id
)
initWithItemList
:(
TXSItemList
*
)
itemList
;
-
(
id
)
initWithItemList
:(
TXSItemList
*
)
itemList
;
-
(
id
)
initWithItems
:(
NS
Mutable
Array
*
)
items
;
-
(
id
)
initWithItems
:(
NSArray
*
)
items
;
@property
(
nonatomic
,
readonly
)
NS
Mutable
Array
*
items
;
@property
(
nonatomic
,
readonly
)
NSArray
*
items
;
@end
@end
example/generated-src/objc/TXSItemList.mm
View file @
f2be27d3
...
@@ -12,17 +12,18 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
...
@@ -12,17 +12,18 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
-
(
id
)
initWithItemList
:(
TXSItemList
*
)
itemList
-
(
id
)
initWithItemList
:(
TXSItemList
*
)
itemList
{
{
if
(
self
=
[
super
init
])
{
if
(
self
=
[
super
init
])
{
_items
=
[
NSMutableArray
arrayWithCapacity
:[
itemList
.
items
count
]];
NSMutableArray
*
_itemsTempArray
=
[
NSMutableArray
arrayWithCapacity
:[
itemList
.
items
count
]];
for
(
NSString
*
currentValue_0
in
itemList
.
items
)
{
for
(
NSString
*
currentValue_0
in
itemList
.
items
)
{
id
copiedValue_0
;
id
copiedValue_0
;
copiedValue_0
=
[
currentValue_0
copy
];
copiedValue_0
=
[
currentValue_0
copy
];
[
_items
addObject
:
copiedValue_0
];
[
_items
TempArray
addObject
:
copiedValue_0
];
}
}
_items
=
_itemsTempArray
;
}
}
return
self
;
return
self
;
}
}
-
(
id
)
initWithItems
:(
NS
Mutable
Array
*
)
items
-
(
id
)
initWithItems
:(
NSArray
*
)
items
{
{
if
(
self
=
[
super
init
])
{
if
(
self
=
[
super
init
])
{
_items
=
items
;
_items
=
items
;
...
@@ -33,13 +34,14 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
...
@@ -33,13 +34,14 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
-
(
id
)
initWithCppItemList
:(
const
::
textsort
::
ItemList
&
)
itemList
-
(
id
)
initWithCppItemList
:(
const
::
textsort
::
ItemList
&
)
itemList
{
{
if
(
self
=
[
super
init
])
{
if
(
self
=
[
super
init
])
{
_items
=
[
NSMutableArray
arrayWithCapacity
:
itemList
.
items
.
size
()];
NSMutableArray
*
_itemsTempArray
=
[
NSMutableArray
arrayWithCapacity
:
itemList
.
items
.
size
()];
for
(
const
auto
&
cppValue_0
:
itemList
.
items
)
{
for
(
const
auto
&
cppValue_0
:
itemList
.
items
)
{
NSString
*
objcValue_0
=
[[
NSString
alloc
]
initWithBytes
:
cppValue_0
.
data
()
NSString
*
objcValue_0
=
[[
NSString
alloc
]
initWithBytes
:
cppValue_0
.
data
()
length:
cppValue_0
.
length
()
length:
cppValue_0
.
length
()
encoding:
NSUTF8StringEncoding
];
encoding:
NSUTF8StringEncoding
];
[
_items
addObject
:
objcValue_0
];
[
_items
TempArray
addObject
:
objcValue_0
];
}
}
_items
=
_itemsTempArray
;
}
}
return
self
;
return
self
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment