diff options
Diffstat (limited to 'indra/viewer_components')
| -rw-r--r-- | indra/viewer_components/updater/llupdatedownloader.cpp | 11 | ||||
| -rw-r--r-- | indra/viewer_components/updater/llupdateinstaller.cpp | 3 | ||||
| -rw-r--r-- | indra/viewer_components/updater/llupdaterservice.cpp | 12 | 
3 files changed, 11 insertions, 15 deletions
| diff --git a/indra/viewer_components/updater/llupdatedownloader.cpp b/indra/viewer_components/updater/llupdatedownloader.cpp index cd4b108c1a..04e0395c50 100644 --- a/indra/viewer_components/updater/llupdatedownloader.cpp +++ b/indra/viewer_components/updater/llupdatedownloader.cpp @@ -30,7 +30,6 @@  #include "llexception.h"  #include <boost/format.hpp>  #include <boost/lexical_cast.hpp> -#include <boost/throw_exception.hpp>  #include <curl/curl.h>  #include "lldir.h"  #include "llevents.h" @@ -468,7 +467,7 @@ void LLUpdateDownloader::Implementation::initializeCurlGet(std::string const & u  	if(!mCurl)  	{ -		BOOST_THROW_EXCEPTION(DownloadError("failed to initialize curl")); +		LLTHROW(DownloadError("failed to initialize curl"));  	}      throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_NOSIGNAL, true));  	throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_FOLLOWLOCATION, true)); @@ -509,7 +508,7 @@ void LLUpdateDownloader::Implementation::resumeDownloading(size_t startByte)  	mHeaderList = curl_slist_append(mHeaderList, rangeHeaderFormat.str().c_str());  	if(mHeaderList == 0)  	{ -		BOOST_THROW_EXCEPTION(DownloadError("cannot add Range header")); +		LLTHROW(DownloadError("cannot add Range header"));  	}  	throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_HTTPHEADER, mHeaderList)); @@ -525,7 +524,7 @@ void LLUpdateDownloader::Implementation::startDownloading(LLURI const & uri, std  	mDownloadData["hash"] = hash;  	mDownloadData["current_version"] = ll_get_version();  	LLSD path = uri.pathArray(); -	if(path.size() == 0) BOOST_THROW_EXCEPTION(DownloadError("no file path")); +	if(path.size() == 0) LLTHROW(DownloadError("no file path"));  	std::string fileName = path[path.size() - 1].asString();  	std::string filePath = gDirUtilp->getExpandedFilename(LL_PATH_TEMP, fileName);  	mDownloadData["path"] = filePath; @@ -548,9 +547,9 @@ void LLUpdateDownloader::Implementation::throwOnCurlError(CURLcode code)  	if(code != CURLE_OK) {  		const char * errorString = curl_easy_strerror(code);  		if(errorString != 0) { -			BOOST_THROW_EXCEPTION(DownloadError(curl_easy_strerror(code))); +			LLTHROW(DownloadError(curl_easy_strerror(code)));  		} else { -			BOOST_THROW_EXCEPTION(DownloadError("unknown curl error")); +			LLTHROW(DownloadError("unknown curl error"));  		}  	} else {  		; // No op. diff --git a/indra/viewer_components/updater/llupdateinstaller.cpp b/indra/viewer_components/updater/llupdateinstaller.cpp index 9f9a08f590..1c7629da23 100644 --- a/indra/viewer_components/updater/llupdateinstaller.cpp +++ b/indra/viewer_components/updater/llupdateinstaller.cpp @@ -36,7 +36,6 @@  #pragma warning(disable: 4702)      // disable 'unreachable code' so we can use lexical_cast (really!).  #endif  #include <boost/lexical_cast.hpp> -#include <boost/throw_exception.hpp>  namespace {  	struct RelocateError: public LLException @@ -49,7 +48,7 @@ namespace {  		std::string scriptFile = gDirUtilp->getBaseFileName(path);  		std::string newPath = gDirUtilp->getExpandedFilename(LL_PATH_TEMP, scriptFile);  		apr_status_t status = apr_file_copy(path.c_str(), newPath.c_str(), APR_FILE_SOURCE_PERMS, gAPRPoolp); -		if(status != APR_SUCCESS) BOOST_THROW_EXCEPTION(RelocateError()); +		if(status != APR_SUCCESS) LLTHROW(RelocateError());  		return newPath;  	} diff --git a/indra/viewer_components/updater/llupdaterservice.cpp b/indra/viewer_components/updater/llupdaterservice.cpp index 0bdd1ede43..1665e41e70 100644 --- a/indra/viewer_components/updater/llupdaterservice.cpp +++ b/indra/viewer_components/updater/llupdaterservice.cpp @@ -32,10 +32,10 @@  #include "lltimer.h"  #include "llupdatechecker.h"  #include "llupdateinstaller.h" +#include "llexception.h"  #include <boost/scoped_ptr.hpp>  #include <boost/weak_ptr.hpp> -#include <boost/throw_exception.hpp>  #include "lldir.h"  #include "llsdserialize.h"  #include "llfile.h" @@ -191,9 +191,8 @@ void LLUpdaterServiceImpl::initialize(const std::string&  channel,  {  	if(mIsChecking || mIsDownloading)  	{ -		BOOST_THROW_EXCEPTION( -			LLUpdaterService::UsageError("LLUpdaterService::initialize call " -										 "while updater is running.")); +		LLTHROW(LLUpdaterService::UsageError("LLUpdaterService::initialize call " +											  "while updater is running."));  	}  	mChannel = channel; @@ -224,9 +223,8 @@ void LLUpdaterServiceImpl::startChecking(bool install_if_ready)  {  	if(mChannel.empty() || mVersion.empty())  	{ -		BOOST_THROW_EXCEPTION( -			LLUpdaterService::UsageError("Set params before call to " -										 "LLUpdaterService::startCheck().")); +		LLTHROW(LLUpdaterService::UsageError("Set params before call to " +											 "LLUpdaterService::startCheck()."));  	}  	mIsChecking = true; | 
