mirror of https://github.com/axmolengine/axmol.git
prefer delegate constructor over new(this) (#19623)
This commit is contained in:
parent
e8993c9860
commit
34517748c7
|
@ -57,16 +57,7 @@ namespace cocos2d { namespace network {
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Implement Downloader
|
||||
Downloader::Downloader()
|
||||
{
|
||||
DownloaderHints hints =
|
||||
{
|
||||
6,
|
||||
45,
|
||||
".tmp"
|
||||
};
|
||||
new(this)Downloader(hints);
|
||||
}
|
||||
Downloader::Downloader() : Downloader(DownloaderHints{6, 45, ".tmp"}) { }
|
||||
|
||||
Downloader::Downloader(const DownloaderHints& hints)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue