Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 1d92f8f

Browse files
dkorpeldlang-bot
authored andcommitted
Add scope to __aaGet functions
1 parent 9ba9a6a commit 1d92f8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/object.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,8 +2830,8 @@ extern (C)
28302830

28312831
private struct AA { void* impl; }
28322832
// size_t _aaLen(in AA aa) pure nothrow @nogc;
2833-
private void* _aaGetY(AA* paa, const TypeInfo_AssociativeArray ti, const size_t valsz, const scope void* pkey) pure nothrow;
2834-
private void* _aaGetX(AA* paa, const TypeInfo_AssociativeArray ti, const size_t valsz, const scope void* pkey, out bool found) pure nothrow;
2833+
private void* _aaGetY(scope AA* paa, const TypeInfo_AssociativeArray ti, const size_t valsz, const scope void* pkey) pure nothrow;
2834+
private void* _aaGetX(scope AA* paa, const TypeInfo_AssociativeArray ti, const size_t valsz, const scope void* pkey, out bool found) pure nothrow;
28352835
// inout(void)* _aaGetRvalueX(inout AA aa, in TypeInfo keyti, in size_t valsz, in void* pkey);
28362836
inout(void[]) _aaValues(inout AA aa, const size_t keysz, const size_t valsz, const TypeInfo tiValueArray) pure nothrow;
28372837
inout(void[]) _aaKeys(inout AA aa, const size_t keysz, const TypeInfo tiKeyArray) pure nothrow;

src/rt/aaA.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ extern (C) size_t _aaLen(scope const AA aa) pure nothrow @nogc
504504
* If key was not in the aa, a mutable pointer to newly inserted value which
505505
* is set to all zeros
506506
*/
507-
extern (C) void* _aaGetY(AA* paa, const TypeInfo_AssociativeArray ti,
507+
extern (C) void* _aaGetY(scope AA* paa, const TypeInfo_AssociativeArray ti,
508508
const size_t valsz, scope const void* pkey)
509509
{
510510
bool found;
@@ -525,7 +525,7 @@ extern (C) void* _aaGetY(AA* paa, const TypeInfo_AssociativeArray ti,
525525
* If key was not in the aa, a mutable pointer to newly inserted value which
526526
* is set to all zeros
527527
*/
528-
extern (C) void* _aaGetX(AA* paa, const TypeInfo_AssociativeArray ti,
528+
extern (C) void* _aaGetX(scope AA* paa, const TypeInfo_AssociativeArray ti,
529529
const size_t valsz, scope const void* pkey, out bool found)
530530
{
531531
// lazily alloc implementation

0 commit comments

Comments
 (0)