summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libluaglue/LuaVM.cpp2
-rw-r--r--src/modules/fetcher/file/FileRewindInputStream.cpp2
-rwxr-xr-xsrc/modules/fetcher/winhttp/WinHttpFetcher.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libluaglue/LuaVM.cpp b/src/libluaglue/LuaVM.cpp
index 04027af..566e516 100644
--- a/src/libluaglue/LuaVM.cpp
+++ b/src/libluaglue/LuaVM.cpp
@@ -77,7 +77,7 @@ void LuaVM::executeFunction( const string &f )
ostringstream ss;
ss << "Unable to call Lua function '" << f << "': " << lua_tostring( m_lua, -1 );
lua_pop( m_lua, 1 );
- throw new std::runtime_error( ss.str( ) );
+ throw std::runtime_error( ss.str( ) );
}
//int nresults = lua_gettop( m_lua ) - top;
diff --git a/src/modules/fetcher/file/FileRewindInputStream.cpp b/src/modules/fetcher/file/FileRewindInputStream.cpp
index 7cdf948..2819187 100644
--- a/src/modules/fetcher/file/FileRewindInputStream.cpp
+++ b/src/modules/fetcher/file/FileRewindInputStream.cpp
@@ -8,7 +8,7 @@ FileRewindInputStream::FileRewindInputStream( const URL &url )
: RewindInputStream( url ), ifstream( )
{
if( url.protocol( ) != "file" || url.host( ) != "localhost" ) {
- throw new runtime_error( "URL doesn't denote a local file" );
+ throw runtime_error( "URL doesn't denote a local file" );
}
open( url.path( ).c_str( ), ios::binary );
diff --git a/src/modules/fetcher/winhttp/WinHttpFetcher.cpp b/src/modules/fetcher/winhttp/WinHttpFetcher.cpp
index 5c8839d..19227f1 100755
--- a/src/modules/fetcher/winhttp/WinHttpFetcher.cpp
+++ b/src/modules/fetcher/winhttp/WinHttpFetcher.cpp
@@ -17,7 +17,7 @@ WinHttpFetcher::WinHttpFetcher( )
if( !m_session ) {
std::ostringstream ss;
ss << "Error creating WinHttp session: " << getLastError( );
- throw new std::runtime_error( ss.str( ) );
+ throw std::runtime_error( ss.str( ) );
}
}