Skip to content

Commit

Permalink
Merge pull request dlang#411 from dawgfoto/fixProtection
Browse files Browse the repository at this point in the history
remove access to private function
  • Loading branch information
9rnsr committed Jan 31, 2012
2 parents 10daf57 + 2c32205 commit 7ccab2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions std/container.d
Expand Up @@ -1628,7 +1628,7 @@ struct Array(T) if (!is(T : const(bool)))
emplace(p + i, e);
assert(p[i] == e);
}
_data.RefCounted.initialize(p[0 .. values.length]);
_data = Data(p[0 .. values.length]);
}

/**
Expand Down Expand Up @@ -1814,7 +1814,7 @@ Complexity: $(BIGOH 1)
{
GC.addRange(p, sz);
}
_data.RefCounted.initialize(cast(T[]) p[0 .. 0]);
_data = Data(cast(T[]) p[0 .. 0]);
_data._capacity = elements;
}
else
Expand Down
3 changes: 0 additions & 3 deletions std/net/curl.d
Expand Up @@ -1998,7 +1998,6 @@ struct HTTP

private void initialize()
{
p.RefCounted.initialize();
p.curl.initialize();
maxRedirects = HTTP.defaultMaxRedirects;
p.charset = "ISO-8859-1"; // Default charset defined in HTTP RFC
Expand Down Expand Up @@ -2666,7 +2665,6 @@ struct FTP

private void initialize()
{
p.RefCounted.initialize();
p.curl.initialize();
p.encoding = "ISO-8859-1";
dataTimeout = _defaultDataTimeout;
Expand Down Expand Up @@ -2943,7 +2941,6 @@ struct SMTP
*/
this(string url)
{
p.RefCounted.initialize();
p.curl.initialize();
auto lowered = url.toLower();

Expand Down

0 comments on commit 7ccab2a

Please sign in to comment.