diff --git a/cocos/network/CCDownloader.cpp b/cocos/network/CCDownloader.cpp index e59278e080..d3633f0bc3 100644 --- a/cocos/network/CCDownloader.cpp +++ b/cocos/network/CCDownloader.cpp @@ -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) {