|
|
@@ -4,7 +4,6 @@
|
|
|
#include "../Precompiled.h"
|
|
|
|
|
|
#include "../Core/Context.h"
|
|
|
-#include "../Base/Algorithm.h"
|
|
|
#include "../Core/CoreEvents.h"
|
|
|
#include "../Engine/Console.h"
|
|
|
#include "../Engine/EngineEvents.h"
|
|
|
@@ -22,6 +21,8 @@
|
|
|
#include "../UI/UI.h"
|
|
|
#include "../UI/UIEvents.h"
|
|
|
|
|
|
+#include <algorithm>
|
|
|
+
|
|
|
#include "../DebugNew.h"
|
|
|
|
|
|
namespace Urho3D
|
|
|
@@ -234,7 +235,7 @@ void Console::SetFocusOnShow(bool enable)
|
|
|
void Console::AddAutoComplete(const String& option)
|
|
|
{
|
|
|
// Sorted insertion
|
|
|
- Vector<String>::Iterator iter = UpperBound(autoComplete_.Begin(), autoComplete_.End(), option);
|
|
|
+ Vector<String>::Iterator iter = std::upper_bound(autoComplete_.Begin(), autoComplete_.End(), option);
|
|
|
if (!iter.ptr_)
|
|
|
autoComplete_.Push(option);
|
|
|
// Make sure it isn't a duplicate
|
|
|
@@ -245,7 +246,7 @@ void Console::AddAutoComplete(const String& option)
|
|
|
void Console::RemoveAutoComplete(const String& option)
|
|
|
{
|
|
|
// Erase and keep ordered
|
|
|
- autoComplete_.Erase(LowerBound(autoComplete_.Begin(), autoComplete_.End(), option));
|
|
|
+ autoComplete_.Erase(std::lower_bound(autoComplete_.Begin(), autoComplete_.End(), option));
|
|
|
if (autoCompletePosition_ > autoComplete_.Size())
|
|
|
autoCompletePosition_ = autoComplete_.Size();
|
|
|
}
|