diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-23 01:29:15 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-23 01:29:15 +0200 |
commit | eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f (patch) | |
tree | 10dbcb93d186a95bc94c1fdf015fc93bac29377d /source/cWebPlugin.cpp | |
parent | Added a RateCompareString function to StringUtils (diff) | |
download | cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.gz cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.bz2 cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.lz cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.xz cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.tar.zst cuberite-eba0437d680eb20dc042b7f5e7f5e1a2e5dfe16f.zip |
Diffstat (limited to 'source/cWebPlugin.cpp')
-rw-r--r-- | source/cWebPlugin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/cWebPlugin.cpp b/source/cWebPlugin.cpp index d0f0c9a9c..47e7d9e49 100644 --- a/source/cWebPlugin.cpp +++ b/source/cWebPlugin.cpp @@ -38,12 +38,12 @@ cWebPlugin::~cWebPlugin() -std::list< std::pair<std::string, std::string> > cWebPlugin::GetTabNames() +std::list< std::pair<AString, AString> > cWebPlugin::GetTabNames() { - std::list< std::pair< std::string, std::string > > NameList; + std::list< std::pair< AString, AString > > NameList; for( TabList::iterator itr = GetTabs().begin(); itr != GetTabs().end(); ++itr ) { - std::pair< std::string, std::string > StringPair; + std::pair< AString, AString > StringPair; StringPair.first = (*itr)->Title; StringPair.second = (*itr)->SafeTitle; NameList.push_back( StringPair ); @@ -55,9 +55,9 @@ std::list< std::pair<std::string, std::string> > cWebPlugin::GetTabNames() -std::pair< std::string, std::string > cWebPlugin::GetTabNameForRequest( HTTPRequest* a_Request ) +std::pair< AString, AString > cWebPlugin::GetTabNameForRequest( HTTPRequest* a_Request ) { - std::pair< std::string, std::string > Names; + std::pair< AString, AString > Names; AStringVector Split = StringSplit(a_Request->Path, "/"); if( Split.size() > 1 ) @@ -95,7 +95,7 @@ std::pair< std::string, std::string > cWebPlugin::GetTabNameForRequest( HTTPRequ AString cWebPlugin::SafeString( const AString & a_String ) { - std::string RetVal; + AString RetVal; for( unsigned int i = 0; i < a_String.size(); ++i ) { char c = a_String[i]; |