diff options
Diffstat (limited to 'crashrep/source/unx/main.cxx')
-rw-r--r-- | crashrep/source/unx/main.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx index b967206e369a..7c7df75ec53e 100644 --- a/crashrep/source/unx/main.cxx +++ b/crashrep/source/unx/main.cxx @@ -40,7 +40,7 @@ #include <pthread.h> #include <limits.h> -#include <hash_map> +#include <boost/unordered_map.hpp> #include <vector> #include <string> @@ -182,7 +182,7 @@ static size_t fcopy( FILE *fpout, FILE *fpin ) from which it can be reviewed and sent */ -bool write_report( const hash_map< string, string >& rSettings ) +bool write_report( const boost::unordered_map< string, string >& rSettings ) { FILE *fp = fopen( tmpnam( g_szReportFile ), "w" ); const char *pszUserType = getenv( "STAROFFICE_USERTYPE" ); @@ -249,7 +249,7 @@ bool write_report( const hash_map< string, string >& rSettings ) } -bool write_description( const hash_map< string, string >& rSettings ) +bool write_description( const boost::unordered_map< string, string >& rSettings ) { bool bSuccess = false; FILE *fp = fopen( tmpnam( g_szDescriptionFile ), "w" ); @@ -267,17 +267,17 @@ bool write_description( const hash_map< string, string >& rSettings ) #if 0 // unused -static void printSettings( const hash_map<string,string>& rSettings ) +static void printSettings( const boost::unordered_map<string,string>& rSettings ) { printf( "Settings:\n" ); - for( hash_map<string,string>::const_iterator it = rSettings.begin(); it != rSettings.end(); ++it ) + for( boost::unordered_map<string,string>::const_iterator it = rSettings.begin(); it != rSettings.end(); ++it ) { printf( "%s=\"%s\"\n", it->first.c_str(), it->second.c_str() ); } } #endif -bool save_crash_report( const string& rFileName, const hash_map< string, string >& /*rSettings*/ ) +bool save_crash_report( const string& rFileName, const boost::unordered_map< string, string >& /*rSettings*/ ) { bool bSuccess = false; FILE *fpout = fopen( rFileName.c_str(), "w" ); @@ -493,7 +493,7 @@ struct RequestParams }; -bool send_crash_report( const hash_map< string, string >& rSettings ) +bool send_crash_report( const boost::unordered_map< string, string >& rSettings ) { if ( 0 == strcasecmp( rSettings.find( "CONTACT" )->second.c_str(), "true" ) && !trim_string(rSettings.find( "EMAIL" )->second).length() ) @@ -557,7 +557,7 @@ static bool append_file( const char *filename, string& rString ) return true; } -string crash_get_details( const hash_map< string, string >& rSettings ) +string crash_get_details( const boost::unordered_map< string, string >& rSettings ) { string aRet; @@ -911,7 +911,7 @@ static bool write_crash_data() #if 0 // unused -static bool write_settings( const hash_map< string, string >& rSettings ) +static bool write_settings( const boost::unordered_map< string, string >& rSettings ) { bool success = false; string sRCFile = get_home_dir(); @@ -936,7 +936,7 @@ static bool write_settings( const hash_map< string, string >& rSettings ) } #endif -static void read_settings( hash_map< string, string >& rSettings ) +static void read_settings( boost::unordered_map< string, string >& rSettings ) { string sRCFile = get_home_dir(); @@ -952,7 +952,7 @@ static void read_settings( hash_map< string, string >& rSettings ) rSettings[ "TITLE" ] = ""; } -static void read_settings_from_environment( hash_map< string, string >& rSettings ) +static void read_settings_from_environment( boost::unordered_map< string, string >& rSettings ) { string strEnv; @@ -1071,7 +1071,7 @@ int main( int argc, char** argv ) if ( g_bSendReport ) { - hash_map< string, string > aDialogSettings; + boost::unordered_map< string, string > aDialogSettings; read_settings( aDialogSettings ); read_settings_from_environment( aDialogSettings ); @@ -1080,7 +1080,7 @@ int main( int argc, char** argv ) } else { - hash_map< string, string > aDialogSettings; + boost::unordered_map< string, string > aDialogSettings; read_settings( aDialogSettings ); read_settings_from_environment( aDialogSettings ); |