mirror of
https://github.com/dlang/phobos.git
synced 2025-05-10 05:41:56 +03:00
Style fix: add whitespace after if/while
This commit is contained in:
parent
99398975d4
commit
df2e72d113
3 changed files with 6 additions and 6 deletions
|
@ -737,13 +737,13 @@ void initializeAll(Range)(Range range)
|
||||||
{
|
{
|
||||||
for ( ; !range.empty ; range.popFront() )
|
for ( ; !range.empty ; range.popFront() )
|
||||||
{
|
{
|
||||||
static if(__traits(isStaticArray, T))
|
static if (__traits(isStaticArray, T))
|
||||||
{
|
{
|
||||||
// static array initializer only contains initialization
|
// static array initializer only contains initialization
|
||||||
// for one element of the static array.
|
// for one element of the static array.
|
||||||
auto elemp = cast(void *)addressOf(range.front);
|
auto elemp = cast(void *)addressOf(range.front);
|
||||||
auto endp = elemp + T.sizeof;
|
auto endp = elemp + T.sizeof;
|
||||||
while(elemp < endp)
|
while (elemp < endp)
|
||||||
{
|
{
|
||||||
memcpy(elemp, p.ptr, p.length);
|
memcpy(elemp, p.ptr, p.length);
|
||||||
elemp += p.length;
|
elemp += p.length;
|
||||||
|
|
|
@ -2195,7 +2195,7 @@ struct Slice(size_t _N, _Range)
|
||||||
$(BOLD Fully defined index)
|
$(BOLD Fully defined index)
|
||||||
+/
|
+/
|
||||||
auto ref opIndex(size_t I)(size_t[I] _indexes...)
|
auto ref opIndex(size_t I)(size_t[I] _indexes...)
|
||||||
if(I && I <= N)
|
if (I && I <= N)
|
||||||
{
|
{
|
||||||
static if (I == PureN)
|
static if (I == PureN)
|
||||||
return _ptr[indexStride(_indexes)];
|
return _ptr[indexStride(_indexes)];
|
||||||
|
|
|
@ -860,9 +860,9 @@ template Tuple(Specs...)
|
||||||
{
|
{
|
||||||
import std.array : empty;
|
import std.array : empty;
|
||||||
auto names = [fieldNames];
|
auto names = [fieldNames];
|
||||||
foreach(ref n; names)
|
foreach (ref n; names)
|
||||||
if (!n.empty)
|
if (!n.empty)
|
||||||
if(auto p = n in translate)
|
if (auto p = n in translate)
|
||||||
n = *p;
|
n = *p;
|
||||||
return names;
|
return names;
|
||||||
}()));
|
}()));
|
||||||
|
@ -881,7 +881,7 @@ template Tuple(Specs...)
|
||||||
return this.rename!(aliasSeqOf!(
|
return this.rename!(aliasSeqOf!(
|
||||||
{
|
{
|
||||||
auto names = [fieldNames];
|
auto names = [fieldNames];
|
||||||
foreach(k, v; translate)
|
foreach (k, v; translate)
|
||||||
names[k] = v;
|
names[k] = v;
|
||||||
return names;
|
return names;
|
||||||
}()));
|
}()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue