Merge branch 'DRTVWR-599-maint-Z' of https://github.com/secondlife/viewer
# Conflicts: # indra/llprimitive/lldaeloader.cpp # indra/llui/lllayoutstack.cpp # indra/llui/llnotifications.h # indra/llui/lltoolbar.cpp # indra/newview/CMakeLists.txt # indra/newview/llagent.cpp # indra/newview/llappviewer.cpp # indra/newview/llfloaterimcontainer.cpp # indra/newview/llfloaterimnearbychathandler.h # indra/newview/llinventoryfunctions.cpp # indra/newview/llpaneloutfitsinventory.h # indra/newview/llsidepanelappearance.h # indra/newview/lltoolbarview.cppmaster
commit
45dc1a63f0
|
|
@ -64,6 +64,8 @@ Aimee Trescothick
|
|||
VWR-14711
|
||||
VWR-14712
|
||||
VWR-15454
|
||||
AiraYumi
|
||||
SL-20781 (github PR #613)
|
||||
Alejandro Rosenthal
|
||||
VWR-1184
|
||||
Aleric Inglewood
|
||||
|
|
|
|||
|
|
@ -24,12 +24,6 @@
|
|||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#if LL_MSVC
|
||||
// disable warning about boost::lexical_cast returning uninitialized data
|
||||
// when it fails to parse the string
|
||||
#pragma warning (disable:4701)
|
||||
#endif
|
||||
|
||||
#include "linden_common.h"
|
||||
|
||||
#include "llavatarappearance.h"
|
||||
|
|
@ -46,14 +40,6 @@
|
|||
#include "boost/bind.hpp"
|
||||
#include "boost/tokenizer.hpp"
|
||||
|
||||
|
||||
#if LL_MSVC
|
||||
// disable boost::lexical_cast warning
|
||||
#pragma warning (disable:4702)
|
||||
#endif
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
using namespace LLAvatarAppearanceDefines;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -230,7 +216,7 @@ void LLAvatarAppearance::initInstance()
|
|||
for (U32 lod = 0; lod < mesh_dict->mLOD; lod++)
|
||||
{
|
||||
LLAvatarJointMesh* mesh = createAvatarJointMesh();
|
||||
std::string mesh_name = "m" + mesh_dict->mName + boost::lexical_cast<std::string>(lod);
|
||||
std::string mesh_name = "m" + mesh_dict->mName + std::to_string(lod);
|
||||
// We pre-pended an m - need to capitalize first character for camelCase
|
||||
mesh_name[1] = toupper(mesh_name[1]);
|
||||
mesh->setName(mesh_name);
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ private:
|
|||
};
|
||||
|
||||
/// shared_ptr manages Entry lifespan for us
|
||||
typedef boost::shared_ptr<EntryBase> EntryPtr;
|
||||
typedef std::shared_ptr<EntryBase> EntryPtr;
|
||||
/// use a @c list to make it easy to insert
|
||||
typedef std::list<EntryPtr> DispatchTable;
|
||||
DispatchTable mDispatch;
|
||||
|
|
|
|||
|
|
@ -1081,7 +1081,7 @@ namespace LLError
|
|||
//
|
||||
// NOTE!!! Requires external mutex lock!!!
|
||||
template <typename RECORDER>
|
||||
std::pair<boost::shared_ptr<RECORDER>, Recorders::iterator>
|
||||
std::pair<std::shared_ptr<RECORDER>, Recorders::iterator>
|
||||
findRecorderPos(SettingsConfigPtr &s)
|
||||
{
|
||||
// Since we promise to return an iterator, use a classic iterator
|
||||
|
|
@ -1092,7 +1092,7 @@ namespace LLError
|
|||
// *it is a RecorderPtr, a shared_ptr<Recorder>. Use a
|
||||
// dynamic_pointer_cast to try to downcast to test if it's also a
|
||||
// shared_ptr<RECORDER>.
|
||||
auto ptr = boost::dynamic_pointer_cast<RECORDER>(*it);
|
||||
auto ptr = std::dynamic_pointer_cast<RECORDER>(*it);
|
||||
if (ptr)
|
||||
{
|
||||
// found the entry we want
|
||||
|
|
@ -1112,7 +1112,7 @@ namespace LLError
|
|||
// shared_ptr might be empty (operator!() returns true) if there was no
|
||||
// such RECORDER subclass instance in mRecorders.
|
||||
template <typename RECORDER>
|
||||
boost::shared_ptr<RECORDER> findRecorder()
|
||||
std::shared_ptr<RECORDER> findRecorder()
|
||||
{
|
||||
SettingsConfigPtr s = Globals::getInstance()->getSettingsConfig();
|
||||
LLMutexLock lock(&s->mRecorderMutex);
|
||||
|
|
@ -1145,7 +1145,7 @@ namespace LLError
|
|||
|
||||
if (!file_name.empty())
|
||||
{
|
||||
boost::shared_ptr<RecordToFile> recordToFile(new RecordToFile(file_name));
|
||||
std::shared_ptr<RecordToFile> recordToFile(new RecordToFile(file_name));
|
||||
if (recordToFile->okay())
|
||||
{
|
||||
addRecorder(recordToFile);
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ namespace LLError
|
|||
bool mWantsMultiline;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<Recorder> RecorderPtr;
|
||||
typedef std::shared_ptr<Recorder> RecorderPtr;
|
||||
|
||||
/**
|
||||
* Instantiate GenericRecorder with a callable(level, message) to get
|
||||
|
|
|
|||
|
|
@ -627,7 +627,7 @@ namespace LLInitParam
|
|||
UserData* mUserData;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<ParamDescriptor> ParamDescriptorPtr;
|
||||
typedef std::shared_ptr<ParamDescriptor> ParamDescriptorPtr;
|
||||
|
||||
// each derived Block class keeps a static data structure maintaining offsets to various params
|
||||
class LL_COMMON_API BlockDescriptor
|
||||
|
|
|
|||
|
|
@ -462,10 +462,10 @@ private:
|
|||
LLProcessPtr mChild;
|
||||
LLTempBoundListener
|
||||
mStdinConnection, mStdoutConnection, mStdoutDataConnection, mStderrConnection;
|
||||
boost::scoped_ptr<LLEventPump::Blocker> mBlocker;
|
||||
std::unique_ptr<LLEventPump::Blocker> mBlocker;
|
||||
LLProcess::ReadPipe::size_type mExpect;
|
||||
LLError::RecorderPtr mRecorder;
|
||||
boost::scoped_ptr<LLLeapListener> mListener;
|
||||
std::unique_ptr<LLLeapListener> mListener;
|
||||
};
|
||||
|
||||
// These must follow the declaration of LLLeapImpl, so they may as well be last.
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
#include "llevents.h"
|
||||
#include "llexception.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/asio/streambuf.hpp>
|
||||
#include <boost/asio/buffers_iterator.hpp>
|
||||
|
|
@ -587,7 +586,7 @@ LLProcess::LLProcess(const LLSDOrParams& params):
|
|||
// apr_procattr_child_err_set()), or accepting a filename, opening it and
|
||||
// passing that apr_file_t (simple <, >, 2> redirect emulation).
|
||||
std::vector<apr_int32_t> select;
|
||||
BOOST_FOREACH(const FileParam& fparam, params.files)
|
||||
for (const FileParam& fparam : params.files)
|
||||
{
|
||||
// Every iteration, we're going to append an item to 'select'. At the
|
||||
// top of the loop, its size() is, in effect, an index. Use that to
|
||||
|
|
@ -684,7 +683,7 @@ LLProcess::LLProcess(const LLSDOrParams& params):
|
|||
argv.push_back(params.executable().c_str());
|
||||
|
||||
// Add arguments. See above remarks about c_str().
|
||||
BOOST_FOREACH(const std::string& arg, params.args)
|
||||
for (const std::string& arg : params.args)
|
||||
{
|
||||
argv.push_back(arg.c_str());
|
||||
}
|
||||
|
|
@ -961,7 +960,7 @@ void LLProcess::handle_status(int reason, int status)
|
|||
// only be performed if in fact we're going to produce the log message.
|
||||
LL_DEBUGS("LLProcess") << empty;
|
||||
std::string reason_str;
|
||||
BOOST_FOREACH(const ReasonCode& rcp, reasons)
|
||||
for (const ReasonCode& rcp : reasons)
|
||||
{
|
||||
if (reason == rcp.code)
|
||||
{
|
||||
|
|
@ -1151,7 +1150,7 @@ std::ostream& operator<<(std::ostream& out, const LLProcess::Params& params)
|
|||
out << "cd " << LLStringUtil::quote(params.cwd) << ": ";
|
||||
}
|
||||
out << LLStringUtil::quote(params.executable);
|
||||
BOOST_FOREACH(const std::string& arg, params.args)
|
||||
for (const std::string& arg : params.args)
|
||||
{
|
||||
out << ' ' << LLStringUtil::quote(arg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class LLEventPump;
|
|||
class LLProcess;
|
||||
/// LLProcess instances are created on the heap by static factory methods and
|
||||
/// managed by ref-counted pointers.
|
||||
typedef boost::shared_ptr<LLProcess> LLProcessPtr;
|
||||
typedef std::shared_ptr<LLProcess> LLProcessPtr;
|
||||
|
||||
/**
|
||||
* LLProcess handles launching an external process with specified command line
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public:
|
|||
/**
|
||||
* @brief The pointer to a runnable.
|
||||
*/
|
||||
typedef boost::shared_ptr<LLRunnable> run_ptr_t;
|
||||
typedef std::shared_ptr<LLRunnable> run_ptr_t;
|
||||
|
||||
/**
|
||||
* @brief The handle for use in the API.
|
||||
|
|
|
|||
|
|
@ -478,9 +478,9 @@ namespace llsd
|
|||
{
|
||||
|
||||
/*****************************************************************************
|
||||
* BOOST_FOREACH() helpers for LLSD
|
||||
* range-based for-loop helpers for LLSD
|
||||
*****************************************************************************/
|
||||
/// Usage: BOOST_FOREACH(LLSD item, inArray(someLLSDarray)) { ... }
|
||||
/// Usage: for (LLSD item : inArray(someLLSDarray)) { ... }
|
||||
class inArray
|
||||
{
|
||||
public:
|
||||
|
|
@ -503,7 +503,7 @@ private:
|
|||
/// MapEntry is what you get from dereferencing an LLSD::map_[const_]iterator.
|
||||
typedef std::map<LLSD::String, LLSD>::value_type MapEntry;
|
||||
|
||||
/// Usage: BOOST_FOREACH([const] MapEntry& e, inMap(someLLSDmap)) { ... }
|
||||
/// Usage: for([const] MapEntry& e : inMap(someLLSDmap)) { ... }
|
||||
class inMap
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include "lldependencies.h"
|
||||
#include "llexception.h"
|
||||
#include "llcoros.h"
|
||||
#include <boost/foreach.hpp>
|
||||
#include <algorithm>
|
||||
#include <iostream> // std::cerr in dire emergency
|
||||
#include <sstream>
|
||||
|
|
@ -411,7 +410,7 @@ void LLSingletonBase::cleanup_()
|
|||
void LLSingletonBase::deleteAll()
|
||||
{
|
||||
// It's essential to traverse these in dependency order.
|
||||
BOOST_FOREACH(LLSingletonBase* sp, dep_sort())
|
||||
for (LLSingletonBase* sp : dep_sort())
|
||||
{
|
||||
// Capture the class name first: in case of exception, don't count on
|
||||
// being able to extract it later.
|
||||
|
|
|
|||
|
|
@ -1213,7 +1213,7 @@ void LLStringUtilBase<T>::getTokens(const string_type& string, std::vector<strin
|
|||
{
|
||||
// This overload must deal with escapes. Delegate that to InEscString
|
||||
// (unless there ARE no escapes).
|
||||
boost::scoped_ptr< LLStringUtilBaseImpl::InString<T> > instrp;
|
||||
std::unique_ptr< LLStringUtilBaseImpl::InString<T> > instrp;
|
||||
if (escapes.empty())
|
||||
instrp.reset(new LLStringUtilBaseImpl::InString<T>(string.begin(), string.end()));
|
||||
else
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@
|
|||
#include "llsdutil.h"
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/range.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
|
|
@ -917,9 +916,9 @@ void LLMemoryInfo::stream(std::ostream& s) const
|
|||
|
||||
// Max key length
|
||||
size_t key_width(0);
|
||||
BOOST_FOREACH(const MapEntry& pair, inMap(mStatsMap))
|
||||
for (const auto& [key, value] : inMap(mStatsMap))
|
||||
{
|
||||
size_t len(pair.first.length());
|
||||
size_t len(key.length());
|
||||
if (len > key_width)
|
||||
{
|
||||
key_width = len;
|
||||
|
|
@ -927,10 +926,9 @@ void LLMemoryInfo::stream(std::ostream& s) const
|
|||
}
|
||||
|
||||
// Now stream stats
|
||||
BOOST_FOREACH(const MapEntry& pair, inMap(mStatsMap))
|
||||
for (const auto& [key, value] : inMap(mStatsMap))
|
||||
{
|
||||
s << pfx << std::setw(narrow(key_width+1)) << (pair.first + ':') << ' ';
|
||||
LLSD value(pair.second);
|
||||
s << pfx << std::setw(narrow(key_width+1)) << (key + ':') << ' ';
|
||||
if (value.isInteger())
|
||||
s << std::setw(12) << value.asInteger();
|
||||
else if (value.isReal())
|
||||
|
|
|
|||
|
|
@ -156,27 +156,27 @@ namespace tut
|
|||
|
||||
int countMessages()
|
||||
{
|
||||
return boost::dynamic_pointer_cast<TestRecorder>(mRecorder)->countMessages();
|
||||
return std::dynamic_pointer_cast<TestRecorder>(mRecorder)->countMessages();
|
||||
}
|
||||
|
||||
void clearMessages()
|
||||
{
|
||||
boost::dynamic_pointer_cast<TestRecorder>(mRecorder)->clearMessages();
|
||||
std::dynamic_pointer_cast<TestRecorder>(mRecorder)->clearMessages();
|
||||
}
|
||||
|
||||
void setWantsTime(bool t)
|
||||
{
|
||||
boost::dynamic_pointer_cast<TestRecorder>(mRecorder)->showTime(t);
|
||||
std::dynamic_pointer_cast<TestRecorder>(mRecorder)->showTime(t);
|
||||
}
|
||||
|
||||
void setWantsMultiline(bool t)
|
||||
{
|
||||
boost::dynamic_pointer_cast<TestRecorder>(mRecorder)->showMultiline(t);
|
||||
std::dynamic_pointer_cast<TestRecorder>(mRecorder)->showMultiline(t);
|
||||
}
|
||||
|
||||
std::string message(int n)
|
||||
{
|
||||
return boost::dynamic_pointer_cast<TestRecorder>(mRecorder)->message(n);
|
||||
return std::dynamic_pointer_cast<TestRecorder>(mRecorder)->message(n);
|
||||
}
|
||||
|
||||
void ensure_message_count(int expectedCount)
|
||||
|
|
@ -500,12 +500,12 @@ namespace
|
|||
void testLogName(LLError::RecorderPtr recorder, LogFromFunction f,
|
||||
const std::string& class_name = "")
|
||||
{
|
||||
boost::dynamic_pointer_cast<tut::TestRecorder>(recorder)->clearMessages();
|
||||
std::dynamic_pointer_cast<tut::TestRecorder>(recorder)->clearMessages();
|
||||
std::string name = f(false);
|
||||
f(true);
|
||||
|
||||
std::string messageWithoutName = boost::dynamic_pointer_cast<tut::TestRecorder>(recorder)->message(0);
|
||||
std::string messageWithName = boost::dynamic_pointer_cast<tut::TestRecorder>(recorder)->message(1);
|
||||
std::string messageWithoutName = std::dynamic_pointer_cast<tut::TestRecorder>(recorder)->message(0);
|
||||
std::string messageWithName = std::dynamic_pointer_cast<tut::TestRecorder>(recorder)->message(1);
|
||||
|
||||
ensure_has(name + " logged without name",
|
||||
messageWithoutName, name);
|
||||
|
|
@ -694,13 +694,13 @@ namespace tut
|
|||
LL_INFOS() << "boo" << LL_ENDL;
|
||||
|
||||
ensure_message_field_equals(0, MSG_FIELD, "boo");
|
||||
ensure_equals("alt recorder count", boost::dynamic_pointer_cast<TestRecorder>(altRecorder)->countMessages(), 1);
|
||||
ensure_contains("alt recorder message 0", boost::dynamic_pointer_cast<TestRecorder>(altRecorder)->message(0), "boo");
|
||||
ensure_equals("alt recorder count", std::dynamic_pointer_cast<TestRecorder>(altRecorder)->countMessages(), 1);
|
||||
ensure_contains("alt recorder message 0", std::dynamic_pointer_cast<TestRecorder>(altRecorder)->message(0), "boo");
|
||||
|
||||
LLError::setTimeFunction(roswell);
|
||||
|
||||
LLError::RecorderPtr anotherRecorder(new TestRecorder());
|
||||
boost::dynamic_pointer_cast<TestRecorder>(anotherRecorder)->showTime(true);
|
||||
std::dynamic_pointer_cast<TestRecorder>(anotherRecorder)->showTime(true);
|
||||
LLError::addRecorder(anotherRecorder);
|
||||
|
||||
LL_INFOS() << "baz" << LL_ENDL;
|
||||
|
|
@ -708,10 +708,10 @@ namespace tut
|
|||
std::string when = roswell();
|
||||
|
||||
ensure_message_does_not_contain(1, when);
|
||||
ensure_equals("alt recorder count", boost::dynamic_pointer_cast<TestRecorder>(altRecorder)->countMessages(), 2);
|
||||
ensure_does_not_contain("alt recorder message 1", boost::dynamic_pointer_cast<TestRecorder>(altRecorder)->message(1), when);
|
||||
ensure_equals("another recorder count", boost::dynamic_pointer_cast<TestRecorder>(anotherRecorder)->countMessages(), 1);
|
||||
ensure_contains("another recorder message 0", boost::dynamic_pointer_cast<TestRecorder>(anotherRecorder)->message(0), when);
|
||||
ensure_equals("alt recorder count", std::dynamic_pointer_cast<TestRecorder>(altRecorder)->countMessages(), 2);
|
||||
ensure_does_not_contain("alt recorder message 1", std::dynamic_pointer_cast<TestRecorder>(altRecorder)->message(1), when);
|
||||
ensure_equals("another recorder count", std::dynamic_pointer_cast<TestRecorder>(anotherRecorder)->countMessages(), 1);
|
||||
ensure_contains("another recorder message 0", std::dynamic_pointer_cast<TestRecorder>(anotherRecorder)->message(0), when);
|
||||
|
||||
LLError::removeRecorder(altRecorder);
|
||||
LLError::removeRecorder(anotherRecorder);
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ namespace tut
|
|||
int which;
|
||||
LLTestApp testApp;
|
||||
|
||||
void explicit_wait(boost::shared_ptr<LLCoros::Promise<std::string>>& cbp);
|
||||
void explicit_wait(std::shared_ptr<LLCoros::Promise<std::string>>& cbp);
|
||||
void waitForEventOn1();
|
||||
void coroPump();
|
||||
void postAndWait1();
|
||||
|
|
@ -111,7 +111,7 @@ namespace tut
|
|||
typedef coroutine_group::object object;
|
||||
coroutine_group coroutinegrp("coroutine");
|
||||
|
||||
void test_data::explicit_wait(boost::shared_ptr<LLCoros::Promise<std::string>>& cbp)
|
||||
void test_data::explicit_wait(std::shared_ptr<LLCoros::Promise<std::string>>& cbp)
|
||||
{
|
||||
BEGIN
|
||||
{
|
||||
|
|
@ -127,7 +127,7 @@ namespace tut
|
|||
// For test purposes, instead of handing 'callback' (or an
|
||||
// adapter) off to some I/O subsystem, we'll just pass it back to
|
||||
// our caller.
|
||||
cbp = boost::make_shared<LLCoros::Promise<std::string>>();
|
||||
cbp = std::make_shared<LLCoros::Promise<std::string>>();
|
||||
LLCoros::Future<std::string> future = LLCoros::getFuture(*cbp);
|
||||
|
||||
// calling get() on the future causes us to suspend
|
||||
|
|
@ -146,7 +146,7 @@ namespace tut
|
|||
DEBUG;
|
||||
|
||||
// Construct the coroutine instance that will run explicit_wait.
|
||||
boost::shared_ptr<LLCoros::Promise<std::string>> respond;
|
||||
std::shared_ptr<LLCoros::Promise<std::string>> respond;
|
||||
LLCoros::instance().launch("test<1>",
|
||||
[this, &respond](){ explicit_wait(respond); });
|
||||
mSync.bump();
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ namespace tut
|
|||
ensure("couldn't find stack Keyed", bool(found));
|
||||
ensure_equals("found wrong Keyed instance", found.get(), &one);
|
||||
{
|
||||
boost::scoped_ptr<Keyed> two(new Keyed("two"));
|
||||
std::unique_ptr<Keyed> two(new Keyed("two"));
|
||||
ensure_equals(Keyed::instanceCount(), 2);
|
||||
auto found = Keyed::getInstance("two");
|
||||
ensure("couldn't find heap Keyed", bool(found));
|
||||
|
|
@ -118,7 +118,7 @@ namespace tut
|
|||
std::weak_ptr<Unkeyed> found = one.getWeak();
|
||||
ensure(! found.expired());
|
||||
{
|
||||
boost::scoped_ptr<Unkeyed> two(new Unkeyed);
|
||||
std::unique_ptr<Unkeyed> two(new Unkeyed);
|
||||
ensure_equals(Unkeyed::instanceCount(), 2);
|
||||
}
|
||||
ensure_equals(Unkeyed::instanceCount(), 1);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
// external library headers
|
||||
#include "llapr.h"
|
||||
#include "apr_thread_proc.h"
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/algorithm/string/find_iterator.hpp>
|
||||
#include <boost/algorithm/string/finder.hpp>
|
||||
|
|
@ -323,7 +322,7 @@ namespace tut
|
|||
{
|
||||
/*==========================================================================*|
|
||||
std::string reason_str;
|
||||
BOOST_FOREACH(const ReasonCode& rcp, reasons)
|
||||
for (const ReasonCode& rcp : reasons)
|
||||
{
|
||||
if (reason == rcp.code)
|
||||
{
|
||||
|
|
@ -554,7 +553,7 @@ namespace tut
|
|||
catch (const failure&)
|
||||
{
|
||||
std::cout << "History:\n";
|
||||
BOOST_FOREACH(const Item& item, history)
|
||||
for (const Item& item : history)
|
||||
{
|
||||
std::string what(item.what);
|
||||
if ((! what.empty()) && what[what.length() - 1] == '\n')
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
#include "llstreamqueue.h"
|
||||
// STL headers
|
||||
#include <vector>
|
||||
// std headers
|
||||
// external library headers
|
||||
#include <boost/foreach.hpp>
|
||||
// other Linden headers
|
||||
#include "../test/lltut.h"
|
||||
#include "stringize.h"
|
||||
|
|
@ -133,7 +130,7 @@ namespace tut
|
|||
std::streamsize leave(5); // len("craft") above
|
||||
std::streamsize skip(total - leave);
|
||||
std::streamsize written(0);
|
||||
BOOST_FOREACH(const std::string& block, blocks)
|
||||
for (const std::string& block : blocks)
|
||||
{
|
||||
written += strq.write(&block[0], block.length());
|
||||
ensure_equals("size() after write()", strq.size(), written);
|
||||
|
|
@ -152,7 +149,7 @@ namespace tut
|
|||
{
|
||||
set_test_name("concatenate blocks");
|
||||
std::string blocks[] = { "abcd", "efghij", "klmnopqrs" };
|
||||
BOOST_FOREACH(const std::string& block, blocks)
|
||||
for (const std::string& block : blocks)
|
||||
{
|
||||
strq.write(&block[0], block.length());
|
||||
}
|
||||
|
|
@ -170,7 +167,7 @@ namespace tut
|
|||
{
|
||||
set_test_name("split blocks");
|
||||
std::string blocks[] = { "abcdefghijklm", "nopqrstuvwxyz" };
|
||||
BOOST_FOREACH(const std::string& block, blocks)
|
||||
for (const std::string& block : blocks)
|
||||
{
|
||||
strq.write(&block[0], block.length());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
// external library headers
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/range/iterator_range.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
// associated header
|
||||
#include "../lltreeiterators.h"
|
||||
|
|
@ -402,7 +401,7 @@ private:
|
|||
*
|
||||
* Example:
|
||||
* @code
|
||||
* BOOST_FOREACH(TreeNodePtr node, getRootRange<LLTreeIter::UP>(somenode))
|
||||
* for (TreeNodePtr node : getRootRange<LLTreeIter::UP>(somenode))
|
||||
* {
|
||||
* std::cout << node->name() << '\n';
|
||||
* }
|
||||
|
|
@ -424,7 +423,7 @@ getRootRange(const TreeNodePtr& node)
|
|||
*
|
||||
* Example:
|
||||
* @code
|
||||
* BOOST_FOREACH(TreeNodePtr node, getWalkRange<LLTreeIter::DFS_PRE>(root))
|
||||
* for (TreeNodePtr node : getWalkRange<LLTreeIter::DFS_PRE>(root))
|
||||
* {
|
||||
* std::cout << node->name() << '\n';
|
||||
* }
|
||||
|
|
@ -520,7 +519,7 @@ public:
|
|||
*
|
||||
* Example usage:
|
||||
* @code
|
||||
* BOOST_FOREACH(EnhancedTreeNodePtr node, somenode->getRootRange<LLTreeIter::UP>())
|
||||
* for (EnhancedTreeNodePtr node : somenode->getRootRange<LLTreeIter::UP>())
|
||||
* {
|
||||
* std::cout << node->name() << '\n';
|
||||
* }
|
||||
|
|
@ -564,7 +563,7 @@ public:
|
|||
*
|
||||
* Example usage:
|
||||
* @code
|
||||
* BOOST_FOREACH(EnhancedTreeNodePtr node, somenode->getWalkRange<LLTreeIter::DFS_PRE>())
|
||||
* for (EnhancedTreeNodePtr node : somenode->getWalkRange<LLTreeIter::DFS_PRE>())
|
||||
* {
|
||||
* std::cout << node->name() << '\n';
|
||||
* }
|
||||
|
|
@ -644,7 +643,7 @@ LLLinkedIter<PlainTree> PlainTree_child_end(PlainTree* node)
|
|||
*
|
||||
* Example:
|
||||
* @code
|
||||
* BOOST_FOREACH(PlainTree* node, getRootRange<LLTreeIter::UP>(somenode))
|
||||
* for (PlainTree* node : getRootRange<LLTreeIter::UP>(somenode))
|
||||
* {
|
||||
* std::cout << node->name() << '\n';
|
||||
* }
|
||||
|
|
@ -668,7 +667,7 @@ getRootRange(PlainTree* node)
|
|||
*
|
||||
* Example:
|
||||
* @code
|
||||
* BOOST_FOREACH(PlainTree* node, getWalkRange<LLTreeIter::DFS_PRE>(root))
|
||||
* for (PlainTree* node : getWalkRange<LLTreeIter::DFS_PRE>(root))
|
||||
* {
|
||||
* std::cout << node->name() << '\n';
|
||||
* }
|
||||
|
|
@ -1103,18 +1102,18 @@ namespace tut
|
|||
// This test function illustrates the looping techniques described in the
|
||||
// comments for the getRootRange() free function, the
|
||||
// EnhancedTreeNode::root_range template and the
|
||||
// EnhancedTreeNode::getRootRange() method. Obviously the BOOST_FOREACH()
|
||||
// EnhancedTreeNode::getRootRange() method. Obviously the for()
|
||||
// forms are more succinct.
|
||||
TreeNodePtr tnroot(example_tree<TreeNode>());
|
||||
TreeNodePtr tnB2b(get_B2b<TreeNode, TreeNode::child_iterator>
|
||||
(tnroot, boost::bind(&TreeNode::child_begin, _1)));
|
||||
|
||||
std::string desc1("BOOST_FOREACH(TreeNodePr, getRootRange<LLTreeIter::UP>(tnB2b))");
|
||||
std::string desc1("for (TreeNodePr : getRootRange<LLTreeIter::UP>(tnB2b))");
|
||||
// std::cout << desc1 << "\n";
|
||||
// Although we've commented out the output statement, ensure that the
|
||||
// loop construct is still valid, as promised by the getRootRange()
|
||||
// documentation.
|
||||
BOOST_FOREACH(TreeNodePtr node, getRootRange<LLTreeIter::UP>(tnB2b))
|
||||
for (TreeNodePtr node : getRootRange<LLTreeIter::UP>(tnB2b))
|
||||
{
|
||||
// std::cout << node->name() << '\n';
|
||||
}
|
||||
|
|
@ -1137,9 +1136,9 @@ namespace tut
|
|||
// std::cout << (*ri)->name() << '\n';
|
||||
}
|
||||
|
||||
std::string desc2("BOOST_FOREACH(EnhancedTreeNodePtr node, etnB2b->getRootRange<LLTreeIter::UP>())");
|
||||
std::string desc2("for (EnhancedTreeNodePtr node : etnB2b->getRootRange<LLTreeIter::UP>())");
|
||||
// std::cout << desc2 << '\n';
|
||||
BOOST_FOREACH(EnhancedTreeNodePtr node, etnB2b->getRootRange<LLTreeIter::UP>())
|
||||
for (EnhancedTreeNodePtr node : etnB2b->getRootRange<LLTreeIter::UP>())
|
||||
{
|
||||
// std::cout << node->name() << '\n';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,12 +218,12 @@ public:
|
|||
/// for the sought string.
|
||||
std::string messageWith(const std::string& search, bool required=true)
|
||||
{
|
||||
return boost::dynamic_pointer_cast<CaptureLogRecorder>(mRecorder)->messageWith(search, required);
|
||||
return std::dynamic_pointer_cast<CaptureLogRecorder>(mRecorder)->messageWith(search, required);
|
||||
}
|
||||
|
||||
std::ostream& streamto(std::ostream& out) const
|
||||
{
|
||||
return boost::dynamic_pointer_cast<CaptureLogRecorder>(mRecorder)->streamto(out);
|
||||
return std::dynamic_pointer_cast<CaptureLogRecorder>(mRecorder)->streamto(out);
|
||||
}
|
||||
|
||||
friend inline std::ostream& operator<<(std::ostream& out, const CaptureLog& self)
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ private:
|
|||
void operator=(const HttpLibcurl &); // Not defined
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOpRequest> opReqPtr_t;
|
||||
typedef std::shared_ptr<HttpOpRequest> opReqPtr_t;
|
||||
|
||||
/// Give cycles to libcurl to run active requests. Completed
|
||||
/// operations (successful or failed) will be retried or handed
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ HttpOperation::handleMap_t HttpOperation::mHandleMap;
|
|||
LLCoreInt::HttpMutex HttpOperation::mOpMutex;
|
||||
|
||||
HttpOperation::HttpOperation():
|
||||
boost::enable_shared_from_this<HttpOperation>(),
|
||||
std::enable_shared_from_this<HttpOperation>(),
|
||||
mReplyQueue(),
|
||||
mUserHandler(),
|
||||
mReqPolicy(HttpRequest::DEFAULT_POLICY_ID),
|
||||
|
|
|
|||
|
|
@ -69,12 +69,12 @@ class HttpService;
|
|||
/// and those interfaces establish the access rules.
|
||||
|
||||
class HttpOperation : private boost::noncopyable,
|
||||
public boost::enable_shared_from_this<HttpOperation>
|
||||
public std::enable_shared_from_this<HttpOperation>
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOperation> ptr_t;
|
||||
typedef boost::weak_ptr<HttpOperation> wptr_t;
|
||||
typedef boost::shared_ptr<HttpReplyQueue> HttpReplyQueuePtr_t;
|
||||
typedef std::shared_ptr<HttpOperation> ptr_t;
|
||||
typedef std::weak_ptr<HttpOperation> wptr_t;
|
||||
typedef std::shared_ptr<HttpReplyQueue> HttpReplyQueuePtr_t;
|
||||
|
||||
/// Threading: called by consumer thread.
|
||||
HttpOperation();
|
||||
|
|
@ -157,12 +157,12 @@ public:
|
|||
HttpHandle getHandle();
|
||||
|
||||
template< class OPT >
|
||||
static boost::shared_ptr< OPT > fromHandle(HttpHandle handle)
|
||||
static std::shared_ptr< OPT > fromHandle(HttpHandle handle)
|
||||
{
|
||||
ptr_t ptr = findByHandle(handle);
|
||||
if (!ptr)
|
||||
return boost::shared_ptr< OPT >();
|
||||
return boost::dynamic_pointer_cast< OPT >(ptr);
|
||||
return std::shared_ptr< OPT >();
|
||||
return std::dynamic_pointer_cast< OPT >(ptr);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ HttpOpRequest::~HttpOpRequest()
|
|||
void HttpOpRequest::stageFromRequest(HttpService * service)
|
||||
{
|
||||
LL_PROFILE_ZONE_SCOPED_CATEGORY_NETWORK;
|
||||
HttpOpRequest::ptr_t self(boost::dynamic_pointer_cast<HttpOpRequest>(shared_from_this()));
|
||||
HttpOpRequest::ptr_t self(std::dynamic_pointer_cast<HttpOpRequest>(shared_from_this()));
|
||||
service->getPolicy().addOp(self); // transfers refcount
|
||||
}
|
||||
|
||||
|
|
@ -211,7 +211,7 @@ void HttpOpRequest::stageFromRequest(HttpService * service)
|
|||
void HttpOpRequest::stageFromReady(HttpService * service)
|
||||
{
|
||||
LL_PROFILE_ZONE_SCOPED_CATEGORY_NETWORK;
|
||||
HttpOpRequest::ptr_t self(boost::dynamic_pointer_cast<HttpOpRequest>(shared_from_this()));
|
||||
HttpOpRequest::ptr_t self(std::dynamic_pointer_cast<HttpOpRequest>(shared_from_this()));
|
||||
service->getTransport().addOp(self); // transfers refcount
|
||||
}
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ void HttpOpRequest::visitNotifier(HttpRequest * request)
|
|||
// HttpOpRequest::ptr_t HttpOpRequest::fromHandle(HttpHandle handle)
|
||||
// {
|
||||
//
|
||||
// return boost::dynamic_pointer_cast<HttpOpRequest>((static_cast<HttpOpRequest *>(handle))->shared_from_this());
|
||||
// return std::dynamic_pointer_cast<HttpOpRequest>((static_cast<HttpOpRequest *>(handle))->shared_from_this());
|
||||
// }
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class BufferArray;
|
|||
class HttpOpRequest : public HttpOperation
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOpRequest> ptr_t;
|
||||
typedef std::shared_ptr<HttpOpRequest> ptr_t;
|
||||
|
||||
HttpOpRequest();
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace LLCore
|
|||
class HttpOpSetGet : public HttpOperation
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOpSetGet> ptr_t;
|
||||
typedef std::shared_ptr<HttpOpSetGet> ptr_t;
|
||||
|
||||
HttpOpSetGet();
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ private:
|
|||
void operator=(const HttpPolicy &); // Not defined
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOpRequest> opReqPtr_t;
|
||||
typedef std::shared_ptr<HttpOpRequest> opReqPtr_t;
|
||||
|
||||
/// Threading: called by init thread.
|
||||
HttpRequest::policy_t createPolicyClass();
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ class HttpReplyQueue : private boost::noncopyable
|
|||
{
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOperation> opPtr_t;
|
||||
typedef boost::shared_ptr<HttpReplyQueue> ptr_t;
|
||||
typedef std::shared_ptr<HttpOperation> opPtr_t;
|
||||
typedef std::shared_ptr<HttpReplyQueue> ptr_t;
|
||||
|
||||
HttpReplyQueue();
|
||||
virtual ~HttpReplyQueue();
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ private:
|
|||
void operator=(const HttpRequestQueue &); // Not defined
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpOperation> opPtr_t;
|
||||
typedef std::shared_ptr<HttpOperation> opPtr_t;
|
||||
|
||||
static void init();
|
||||
static void term();
|
||||
|
|
|
|||
|
|
@ -301,24 +301,24 @@ struct HttpStatus
|
|||
|
||||
HttpStatus()
|
||||
{
|
||||
mDetails = boost::shared_ptr<Details>(new Details(LLCORE, HE_SUCCESS));
|
||||
mDetails = std::shared_ptr<Details>(new Details(LLCORE, HE_SUCCESS));
|
||||
}
|
||||
|
||||
HttpStatus(type_enum_t type, short status)
|
||||
{
|
||||
mDetails = boost::shared_ptr<Details>(new Details(type, status));
|
||||
mDetails = std::shared_ptr<Details>(new Details(type, status));
|
||||
}
|
||||
|
||||
HttpStatus(int http_status)
|
||||
{
|
||||
mDetails = boost::shared_ptr<Details>(new Details(http_status,
|
||||
mDetails = std::shared_ptr<Details>(new Details(http_status,
|
||||
(http_status >= 200 && http_status <= 299) ? HE_SUCCESS : HE_REPLY_ERROR));
|
||||
llassert(http_status >= 100 && http_status <= 999);
|
||||
}
|
||||
|
||||
HttpStatus(int http_status, const std::string &message)
|
||||
{
|
||||
mDetails = boost::shared_ptr<Details>(new Details(http_status,
|
||||
mDetails = std::shared_ptr<Details>(new Details(http_status,
|
||||
(http_status >= 200 && http_status <= 299) ? HE_SUCCESS : HE_REPLY_ERROR));
|
||||
llassert(http_status >= 100 && http_status <= 999);
|
||||
mDetails->mMessage = message;
|
||||
|
|
@ -341,7 +341,7 @@ struct HttpStatus
|
|||
|
||||
HttpStatus & clone(const HttpStatus &rhs)
|
||||
{
|
||||
mDetails = boost::shared_ptr<Details>(new Details(*rhs.mDetails));
|
||||
mDetails = std::shared_ptr<Details>(new Details(*rhs.mDetails));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
@ -490,14 +490,14 @@ private:
|
|||
LLSD mErrorData;
|
||||
};
|
||||
|
||||
boost::shared_ptr<Details> mDetails;
|
||||
std::shared_ptr<Details> mDetails;
|
||||
|
||||
}; // end struct HttpStatus
|
||||
|
||||
/// A namespace for several free methods and low level utilities.
|
||||
namespace LLHttp
|
||||
{
|
||||
typedef boost::shared_ptr<CURL> CURL_ptr;
|
||||
typedef std::shared_ptr<CURL> CURL_ptr;
|
||||
|
||||
void initialize();
|
||||
void cleanup();
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ class HttpResponse;
|
|||
class HttpHandler
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<HttpHandler> ptr_t;
|
||||
typedef boost::weak_ptr<HttpHandler> wptr_t;
|
||||
typedef std::shared_ptr<HttpHandler> ptr_t;
|
||||
typedef std::weak_ptr<HttpHandler> wptr_t;
|
||||
|
||||
virtual ~HttpHandler()
|
||||
{ }
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public:
|
|||
typedef container_t::const_reverse_iterator const_reverse_iterator;
|
||||
typedef container_t::value_type value_type;
|
||||
typedef container_t::size_type size_type;
|
||||
typedef boost::shared_ptr<HttpHeaders> ptr_t;
|
||||
typedef std::shared_ptr<HttpHeaders> ptr_t;
|
||||
|
||||
public:
|
||||
/// @post In addition to the instance, caller has a refcount
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class HttpOptions : private boost::noncopyable
|
|||
public:
|
||||
HttpOptions();
|
||||
|
||||
typedef boost::shared_ptr<HttpOptions> ptr_t;
|
||||
typedef std::shared_ptr<HttpOptions> ptr_t;
|
||||
|
||||
virtual ~HttpOptions(); // Use release()
|
||||
|
||||
|
|
|
|||
|
|
@ -96,8 +96,8 @@ private:
|
|||
public:
|
||||
typedef unsigned int policy_t;
|
||||
|
||||
typedef boost::shared_ptr<HttpRequest> ptr_t;
|
||||
typedef boost::weak_ptr<HttpRequest> wptr_t;
|
||||
typedef std::shared_ptr<HttpRequest> ptr_t;
|
||||
typedef std::weak_ptr<HttpRequest> wptr_t;
|
||||
public:
|
||||
/// @name PolicyMethods
|
||||
/// @{
|
||||
|
|
@ -627,7 +627,7 @@ public:
|
|||
protected:
|
||||
|
||||
private:
|
||||
typedef boost::shared_ptr<HttpReplyQueue> HttpReplyQueuePtr_t;
|
||||
typedef std::shared_ptr<HttpReplyQueue> HttpReplyQueuePtr_t;
|
||||
|
||||
/// @name InstanceData
|
||||
///
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public:
|
|||
/// Statistics for the HTTP
|
||||
struct TransferStats
|
||||
{
|
||||
typedef boost::shared_ptr<TransferStats> ptr_t;
|
||||
typedef std::shared_ptr<TransferStats> ptr_t;
|
||||
|
||||
TransferStats() : mSizeDownload(0.0), mTotalTime(0.0), mSpeedDownload(0.0) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
#include "stringize.h"
|
||||
#include "llstring.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/range/begin.hpp>
|
||||
#include <boost/range/end.hpp>
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
|
@ -746,10 +745,10 @@ void LLDir::walkSearchSkinDirs(const std::string& subdir,
|
|||
const std::string& filename,
|
||||
const FUNCTION& function) const
|
||||
{
|
||||
BOOST_FOREACH(std::string skindir, mSearchSkinDirs)
|
||||
for (const std::string& skindir : mSearchSkinDirs)
|
||||
{
|
||||
std::string subdir_path(add(skindir, subdir));
|
||||
BOOST_FOREACH(std::string subsubdir, subsubdirs)
|
||||
for (const std::string& subsubdir : subsubdirs)
|
||||
{
|
||||
std::string full_path(add(subdir_path, subsubdir, filename));
|
||||
|
||||
|
|
@ -908,7 +907,7 @@ std::vector<std::string> LLDir::findSkinnedFilenames(const std::string& subdir,
|
|||
// current language, copy them -- in proper order -- into results.
|
||||
// Don't drive this by walking the map itself: it matters that we
|
||||
// generate results in the same order as subsubdirs.
|
||||
BOOST_FOREACH(std::string subsubdir, subsubdirs)
|
||||
for (const std::string& subsubdir : subsubdirs)
|
||||
{
|
||||
StringMap::const_iterator found(path_for.find(subsubdir));
|
||||
if (found != path_for.end())
|
||||
|
|
@ -920,7 +919,7 @@ std::vector<std::string> LLDir::findSkinnedFilenames(const std::string& subdir,
|
|||
|
||||
LL_DEBUGS("LLDir") << empty;
|
||||
const char* comma = "";
|
||||
BOOST_FOREACH(std::string path, results)
|
||||
for (const std::string& path : results)
|
||||
{
|
||||
LL_CONT << comma << "'" << path << "'";
|
||||
comma = ", ";
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "../test/lltut.h"
|
||||
#include "stringize.h"
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
||||
using boost::assign::list_of;
|
||||
|
|
@ -109,7 +108,7 @@ struct LLDir_Dummy: public LLDir
|
|||
|
||||
"install/skins/default/future/somefile.txt"
|
||||
};
|
||||
BOOST_FOREACH(const char* path, preload)
|
||||
for (const char* path : preload)
|
||||
{
|
||||
buildFilesystem(path);
|
||||
}
|
||||
|
|
@ -166,7 +165,7 @@ struct LLDir_Dummy: public LLDir
|
|||
LLStringUtil::getTokens(path, components, "/");
|
||||
// Ensure we have an entry representing every level of this path
|
||||
std::string partial;
|
||||
BOOST_FOREACH(std::string component, components)
|
||||
for (std::string component : components)
|
||||
{
|
||||
append(partial, component);
|
||||
mFilesystem.insert(partial);
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ std::string LLImageJ2C::getEngineInfo()
|
|||
{
|
||||
// All known LLImageJ2CImpl implementation subclasses are cheap to
|
||||
// construct.
|
||||
boost::scoped_ptr<LLImageJ2CImpl> impl(fallbackCreateLLImageJ2CImpl());
|
||||
std::unique_ptr<LLImageJ2CImpl> impl(fallbackCreateLLImageJ2CImpl());
|
||||
return impl->getEngineInfo();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ protected:
|
|||
S8 mRawDiscardLevel;
|
||||
F32 mRate;
|
||||
bool mReversible;
|
||||
boost::scoped_ptr<LLImageJ2CImpl> mImpl;
|
||||
std::unique_ptr<LLImageJ2CImpl> mImpl;
|
||||
std::string mLastError;
|
||||
|
||||
// Image compression/decompression tester
|
||||
|
|
|
|||
|
|
@ -116,10 +116,10 @@ private:
|
|||
};
|
||||
|
||||
// Encode variable
|
||||
boost::scoped_ptr<LLKDUMemSource> mInputp;
|
||||
std::unique_ptr<LLKDUMemSource> mInputp;
|
||||
CodeStreamHolder mCodeStreamp;
|
||||
boost::scoped_ptr<kdu_core::kdu_coords> mTPosp; // tile position
|
||||
boost::scoped_ptr<kdu_core::kdu_dims> mTileIndicesp;
|
||||
std::unique_ptr<kdu_core::kdu_coords> mTPosp; // tile position
|
||||
std::unique_ptr<kdu_core::kdu_dims> mTileIndicesp;
|
||||
int mBlocksSize;
|
||||
int mPrecinctsSize;
|
||||
int mLevels;
|
||||
|
|
@ -128,7 +128,7 @@ private:
|
|||
// We don't own this LLImageRaw. We're simply pointing to an instance
|
||||
// passed into initDecode().
|
||||
LLImageRaw *mRawImagep;
|
||||
boost::scoped_ptr<LLKDUDecodeState> mDecodeState;
|
||||
std::unique_ptr<LLKDUDecodeState> mDecodeState;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1003,7 +1003,7 @@ class LLVolume : public LLRefCount
|
|||
friend class LLVolumeLODGroup;
|
||||
|
||||
protected:
|
||||
~LLVolume(); // use unref
|
||||
virtual ~LLVolume(); // use unref
|
||||
|
||||
public:
|
||||
typedef std::vector<LLVolumeFace> face_list_t;
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ public:
|
|||
private:
|
||||
struct QueuedCoproc
|
||||
{
|
||||
typedef boost::shared_ptr<QueuedCoproc> ptr_t;
|
||||
typedef std::shared_ptr<QueuedCoproc> ptr_t;
|
||||
|
||||
QueuedCoproc(const std::string &name, const LLUUID &id, CoProcedure_t proc) :
|
||||
mName(name),
|
||||
|
|
@ -115,7 +115,7 @@ private:
|
|||
// Use shared_ptr to control the lifespan of our CoprocQueue_t instance
|
||||
// because the consuming coroutine might outlive this LLCoprocedurePool
|
||||
// instance.
|
||||
typedef boost::shared_ptr<CoprocQueue_t> CoprocQueuePtr;
|
||||
typedef std::shared_ptr<CoprocQueue_t> CoprocQueuePtr;
|
||||
|
||||
std::string mPoolName;
|
||||
size_t mPoolSize, mActiveCoprocsCount, mPending;
|
||||
|
|
@ -301,7 +301,7 @@ LLCoprocedurePool::LLCoprocedurePool(const std::string &poolName, size_t size):
|
|||
mPoolSize(size),
|
||||
mActiveCoprocsCount(0),
|
||||
mPending(0),
|
||||
mPendingCoprocs(boost::make_shared<CoprocQueue_t>(LLCoprocedureManager::DEFAULT_QUEUE_SIZE)),
|
||||
mPendingCoprocs(std::make_shared<CoprocQueue_t>(LLCoprocedureManager::DEFAULT_QUEUE_SIZE)),
|
||||
mHTTPPolicy(LLCore::HttpRequest::DEFAULT_POLICY_ID),
|
||||
mCoroMapping()
|
||||
{
|
||||
|
|
@ -384,7 +384,7 @@ LLUUID LLCoprocedurePool::enqueueCoprocedure(const std::string &name, LLCoproced
|
|||
LL_DEBUGS("CoProcMgr") << "Coprocedure(" << name << ") enqueuing with id=" << id.asString() << " in pool \"" << mPoolName << "\" at "
|
||||
<< mPending << LL_ENDL;
|
||||
}
|
||||
auto pushed = mPendingCoprocs->try_push(boost::make_shared<QueuedCoproc>(name, id, proc));
|
||||
auto pushed = mPendingCoprocs->try_push(std::make_shared<QueuedCoproc>(name, id, proc));
|
||||
if (pushed == boost::fibers::channel_op_status::success)
|
||||
{
|
||||
++mPending;
|
||||
|
|
|
|||
|
|
@ -263,8 +263,8 @@ class HttpCoroHandler : public LLCore::HttpHandler
|
|||
{
|
||||
public:
|
||||
|
||||
typedef boost::shared_ptr<HttpCoroHandler> ptr_t;
|
||||
typedef boost::weak_ptr<HttpCoroHandler> wptr_t;
|
||||
typedef std::shared_ptr<HttpCoroHandler> ptr_t;
|
||||
typedef std::weak_ptr<HttpCoroHandler> wptr_t;
|
||||
|
||||
HttpCoroHandler(LLEventStream &reply);
|
||||
|
||||
|
|
@ -317,8 +317,8 @@ public:
|
|||
static const std::string HTTP_RESULTS_CONTENT;
|
||||
static const std::string HTTP_RESULTS_RAW;
|
||||
|
||||
typedef boost::shared_ptr<HttpCoroutineAdapter> ptr_t;
|
||||
typedef boost::weak_ptr<HttpCoroutineAdapter> wptr_t;
|
||||
typedef std::shared_ptr<HttpCoroutineAdapter> ptr_t;
|
||||
typedef std::weak_ptr<HttpCoroutineAdapter> wptr_t;
|
||||
|
||||
HttpCoroutineAdapter(const std::string &name, LLCore::HttpRequest::policy_t policyId);
|
||||
~HttpCoroutineAdapter();
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ private:
|
|||
|
||||
// Callback types for get()
|
||||
typedef boost::signals2::signal < void(const LLSD &) > callback_signal_t;
|
||||
typedef boost::shared_ptr<callback_signal_t> signal_ptr;
|
||||
typedef std::shared_ptr<callback_signal_t> signal_ptr;
|
||||
// May have multiple callbacks for a single ID, which are
|
||||
// represented as multiple slots bound to the signal.
|
||||
// Avoid copying signals via pointers.
|
||||
|
|
|
|||
|
|
@ -982,7 +982,7 @@ LLHTTPNode& LLIOHTTPServer::create(
|
|||
}
|
||||
|
||||
LLHTTPResponseFactory* factory = new LLHTTPResponseFactory;
|
||||
boost::shared_ptr<LLChainIOFactory> factory_ptr(factory);
|
||||
std::shared_ptr<LLChainIOFactory> factory_ptr(factory);
|
||||
|
||||
LLIOServerSocket* server = new LLIOServerSocket(pool, socket, factory_ptr);
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public:
|
|||
/**
|
||||
* @brief Scattered memory container.
|
||||
*/
|
||||
typedef boost::shared_ptr<LLBufferArray> buffer_ptr_t;
|
||||
typedef std::shared_ptr<LLBufferArray> buffer_ptr_t;
|
||||
|
||||
/**
|
||||
* @brief Enumeration for IO return codes
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
/**
|
||||
* @brief Reference counted shared pointers to sockets.
|
||||
*/
|
||||
typedef boost::shared_ptr<LLSocket> ptr_t;
|
||||
typedef std::shared_ptr<LLSocket> ptr_t;
|
||||
|
||||
/**
|
||||
* @brief Type of socket to create.
|
||||
|
|
@ -305,7 +305,7 @@ class LLIOServerSocket : public LLIOPipe
|
|||
{
|
||||
public:
|
||||
typedef LLSocket::ptr_t socket_t;
|
||||
typedef boost::shared_ptr<LLChainIOFactory> factory_t;
|
||||
typedef std::shared_ptr<LLChainIOFactory> factory_t;
|
||||
LLIOServerSocket(apr_pool_t* pool, socket_t listener, factory_t reactor);
|
||||
virtual ~LLIOServerSocket();
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ class LLService : public LLIOPipe
|
|||
public:
|
||||
//typedef boost::intrusive_ptr<LLServiceCreator> creator_t;
|
||||
//typedef boost::intrusive_ptr<LLService> service_t;
|
||||
typedef boost::shared_ptr<LLChainIOFactory> creator_t;
|
||||
typedef std::shared_ptr<LLChainIOFactory> creator_t;
|
||||
|
||||
/**
|
||||
* @brief This method is used to register a protocol name with a
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ private:
|
|||
std::string mName;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<LLStoredMessage> LLStoredMessagePtr;
|
||||
typedef std::shared_ptr<LLStoredMessage> LLStoredMessagePtr;
|
||||
|
||||
|
||||
#endif // LL_STOREDMESSAGE_H
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ void LLCurl::Responder::httpCompleted()
|
|||
}
|
||||
|
||||
void LLCurl::Responder::completedRaw(LLChannelDescriptors const&,
|
||||
boost::shared_ptr<LLBufferArray> const&)
|
||||
std::shared_ptr<LLBufferArray> const&)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ public:
|
|||
// "init_history" message
|
||||
void initializeUrlHistory(const LLSD& url_history);
|
||||
|
||||
boost::shared_ptr<LLPluginClassMedia> getSharedPtr() { return boost::dynamic_pointer_cast<LLPluginClassMedia>(shared_from_this()); } // due to enable_shared_from_this
|
||||
std::shared_ptr<LLPluginClassMedia> getSharedPtr() { return std::dynamic_pointer_cast<LLPluginClassMedia>(shared_from_this()); } // due to enable_shared_from_this
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
#include "llsd.h"
|
||||
#include "llevents.h"
|
||||
|
||||
class LLPluginProcessParentOwner : public boost::enable_shared_from_this < LLPluginProcessParentOwner >
|
||||
class LLPluginProcessParentOwner : public std::enable_shared_from_this < LLPluginProcessParentOwner >
|
||||
{
|
||||
public:
|
||||
virtual ~LLPluginProcessParentOwner();
|
||||
|
|
@ -60,7 +60,7 @@ class LLPluginProcessParent : public LLPluginMessagePipeOwner
|
|||
|
||||
LLPluginProcessParent(LLPluginProcessParentOwner *owner);
|
||||
public:
|
||||
typedef boost::shared_ptr<LLPluginProcessParent> ptr_t;
|
||||
typedef std::shared_ptr<LLPluginProcessParent> ptr_t;
|
||||
|
||||
~LLPluginProcessParent();
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@
|
|||
#pragma warning (default : 4264)
|
||||
#endif
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
#include "lldaeloader.h"
|
||||
|
|
@ -958,7 +957,7 @@ LLDAELoader::LLDAELoader(
|
|||
mPreprocessDAE(preprocess)
|
||||
{
|
||||
// <FS:Beq> mesh loader suffix configuration
|
||||
for(int i=0;i<LLModel::NUM_LODS;i++)
|
||||
for (int i = 0; i < LLModel::NUM_LODS; i++)
|
||||
{
|
||||
LLDAELoader::sLODSuffix[i] = lod_suffix[i];
|
||||
}
|
||||
|
|
@ -2473,7 +2472,7 @@ std::string LLDAELoader::getElementLabel(daeElement *element)
|
|||
|
||||
if (ind > 0)
|
||||
{
|
||||
index_string = "_" + boost::lexical_cast<std::string>(ind);
|
||||
index_string = "_" + std::to_string(ind);
|
||||
}
|
||||
|
||||
// if parent has a name or ID, use it
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#define LL_LLDAELOADER_H
|
||||
|
||||
#include "llmodelloader.h"
|
||||
#include <array> // <FS:Beq/> configurable lod suffixes
|
||||
|
||||
class DAE;
|
||||
class daeElement;
|
||||
|
|
|
|||
|
|
@ -48,8 +48,6 @@
|
|||
|
||||
// TODO: includes inherited from dae loader. Validate / prune
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#include "llsdserialize.h"
|
||||
#include "lljoint.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ LLModel::~LLModel()
|
|||
{
|
||||
LLConvexDecomposition::getInstance()->deleteDecomposition(mDecompID);
|
||||
}
|
||||
mPhysics.mMesh.clear();
|
||||
}
|
||||
|
||||
//static
|
||||
|
|
|
|||
|
|
@ -111,6 +111,8 @@ public:
|
|||
std::vector<LLVector3> mPositions;
|
||||
std::vector<LLVector3> mNormals;
|
||||
|
||||
~PhysicsMesh() {}
|
||||
|
||||
void clear()
|
||||
{
|
||||
mPositions.clear();
|
||||
|
|
@ -136,6 +138,7 @@ public:
|
|||
public:
|
||||
Decomposition() { }
|
||||
Decomposition(LLSD& data);
|
||||
~Decomposition() { }
|
||||
void fromLLSD(LLSD& data);
|
||||
LLSD asLLSD() const;
|
||||
bool hasHullList() const;
|
||||
|
|
@ -370,7 +373,7 @@ class LLModelInstanceBase
|
|||
{
|
||||
public:
|
||||
LLPointer<LLModel> mModel;
|
||||
LLPointer<LLModel> mLOD[5];
|
||||
LLPointer<LLModel> mLOD[LLModel::NUM_LODS];
|
||||
LLUUID mMeshID;
|
||||
|
||||
LLMatrix4 mTransform;
|
||||
|
|
@ -385,6 +388,15 @@ public:
|
|||
: mModel(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~LLModelInstanceBase()
|
||||
{
|
||||
mModel = NULL;
|
||||
for (int j = 0; j < LLModel::NUM_LODS; ++j)
|
||||
{
|
||||
mLOD[j] = NULL;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
typedef std::vector<LLModelInstanceBase> model_instance_list;
|
||||
|
|
@ -404,6 +416,8 @@ public:
|
|||
|
||||
LLModelInstance(LLSD& data);
|
||||
|
||||
~LLModelInstance() {}
|
||||
|
||||
LLSD asLLSD();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ namespace tut
|
|||
|
||||
void whitelist_test(int num, bool enable, const char *whitelist, const char *candidate_url, bool expected_pass)
|
||||
{
|
||||
std::string message = "Whitelist test " + boost::lexical_cast<std::string>(num);
|
||||
std::string message = "Whitelist test " + std::to_string(num);
|
||||
LLMediaEntry entry;
|
||||
entry.setWhiteListEnable(enable);
|
||||
set_whitelist(entry, whitelist);
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@
|
|||
#include "llerror.h"
|
||||
#include "llxuiparser.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
|
||||
//
|
||||
// LLCommandId class
|
||||
|
|
@ -186,7 +184,7 @@ bool LLCommandManager::load()
|
|||
return false;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(LLCommand::Params& commandParams, commandsParams.commands)
|
||||
for (const LLCommand::Params& commandParams : commandsParams.commands)
|
||||
{
|
||||
LLCommand * command = new LLCommand(commandParams);
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@
|
|||
#include "llmultifloater.h"
|
||||
#include "llsdutil.h"
|
||||
#include "lluiusage.h"
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
|
||||
// use this to control "jumping" behavior when Ctrl-Tabbing
|
||||
|
|
@ -2573,7 +2572,7 @@ void LLFloaterView::reshape(S32 width, S32 height, BOOL called_from_parent)
|
|||
//{
|
||||
// floaterp->translate(translate_x, translate_y);
|
||||
//}
|
||||
BOOST_FOREACH(LLHandle<LLFloater> dependent_floater, floaterp->mDependents)
|
||||
for (LLHandle<LLFloater> dependent_floater : floaterp->mDependents)
|
||||
{
|
||||
if (dependent_floater.get())
|
||||
{
|
||||
|
|
@ -2588,10 +2587,9 @@ void LLFloaterView::reshape(S32 width, S32 height, BOOL called_from_parent)
|
|||
void LLFloaterView::restoreAll()
|
||||
{
|
||||
// make sure all subwindows aren't minimized
|
||||
child_list_t child_list = *(getChildList());
|
||||
for (child_list_const_iter_t child_it = child_list.begin(); child_it != child_list.end(); ++child_it)
|
||||
for (auto child : *getChildList())
|
||||
{
|
||||
LLFloater* floaterp = dynamic_cast<LLFloater*>(*child_it);
|
||||
LLFloater* floaterp = dynamic_cast<LLFloater*>(child);
|
||||
if (floaterp)
|
||||
{
|
||||
floaterp->setMinimized(FALSE);
|
||||
|
|
|
|||
|
|
@ -453,8 +453,7 @@ void LLLayoutStack::updateLayout()
|
|||
: getRect().getHeight();
|
||||
|
||||
// first, assign minimum dimensions
|
||||
LLLayoutPanel* panelp = NULL;
|
||||
BOOST_FOREACH(panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -467,12 +466,15 @@ void LLLayoutStack::updateLayout()
|
|||
llassert(total_visible_fraction < 1.05f);
|
||||
|
||||
// don't need spacing after last panel
|
||||
space_to_distribute += panelp ? ll_round((F32)mPanelSpacing * panelp->getVisibleAmount()) : 0;
|
||||
if (!mPanels.empty())
|
||||
{
|
||||
space_to_distribute += ll_round(F32(mPanelSpacing) * mPanels.back()->getVisibleAmount());
|
||||
}
|
||||
|
||||
S32 remaining_space = space_to_distribute;
|
||||
if (space_to_distribute > 0 && total_visible_fraction > 0.f)
|
||||
{ // give space proportionally to visible auto resize panels
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -485,7 +487,7 @@ void LLLayoutStack::updateLayout()
|
|||
}
|
||||
|
||||
// distribute any left over pixels to non-collapsed, visible panels
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (remaining_space == 0) break;
|
||||
|
||||
|
|
@ -504,7 +506,7 @@ void LLLayoutStack::updateLayout()
|
|||
// <FS:Zi> Record new size for this panel
|
||||
mSavedSizes = LLSD();
|
||||
// </FS:Zi>
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
F32 panel_dim = llmax(panelp->getExpandedMinDim(), panelp->mTargetDim);
|
||||
|
||||
|
|
@ -606,7 +608,7 @@ LLLayoutPanel* LLLayoutStack::findEmbeddedPanel(LLPanel* panelp) const
|
|||
{
|
||||
if (!panelp) return NULL;
|
||||
|
||||
BOOST_FOREACH(LLLayoutPanel* p, mPanels)
|
||||
for (LLLayoutPanel* p : mPanels)
|
||||
{
|
||||
if (p == panelp)
|
||||
{
|
||||
|
|
@ -620,7 +622,7 @@ LLLayoutPanel* LLLayoutStack::findEmbeddedPanelByName(const std::string& name) c
|
|||
{
|
||||
LLLayoutPanel* result = NULL;
|
||||
|
||||
BOOST_FOREACH(LLLayoutPanel* p, mPanels)
|
||||
for (LLLayoutPanel* p : mPanels)
|
||||
{
|
||||
if (p->getName() == name)
|
||||
{
|
||||
|
|
@ -634,7 +636,7 @@ LLLayoutPanel* LLLayoutStack::findEmbeddedPanelByName(const std::string& name) c
|
|||
|
||||
void LLLayoutStack::createResizeBar(LLLayoutPanel* panelp)
|
||||
{
|
||||
BOOST_FOREACH(LLLayoutPanel* lp, mPanels)
|
||||
for (LLLayoutPanel* lp : mPanels)
|
||||
{
|
||||
if (lp->mResizeBar == NULL)
|
||||
{
|
||||
|
|
@ -737,7 +739,7 @@ void LLLayoutStack::updateFractionalSizes()
|
|||
{
|
||||
F32 total_resizable_dim = 0.f;
|
||||
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -745,7 +747,7 @@ void LLLayoutStack::updateFractionalSizes()
|
|||
}
|
||||
}
|
||||
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -766,7 +768,7 @@ void LLLayoutStack::normalizeFractionalSizes()
|
|||
S32 num_auto_resize_panels = 0;
|
||||
F32 total_fractional_size = 0.f;
|
||||
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -777,7 +779,7 @@ void LLLayoutStack::normalizeFractionalSizes()
|
|||
|
||||
if (total_fractional_size == 0.f)
|
||||
{ // equal distribution
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -787,7 +789,7 @@ void LLLayoutStack::normalizeFractionalSizes()
|
|||
}
|
||||
else
|
||||
{ // renormalize
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -804,7 +806,7 @@ bool LLLayoutStack::animatePanels()
|
|||
//
|
||||
// animate visibility
|
||||
//
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (panelp->getVisible())
|
||||
{
|
||||
|
|
@ -902,7 +904,7 @@ void LLLayoutStack::updatePanelRect( LLLayoutPanel* resized_panel, const LLRect&
|
|||
LLLayoutPanel* other_resize_panel = NULL;
|
||||
LLLayoutPanel* following_panel = NULL;
|
||||
|
||||
BOOST_REVERSE_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
BOOST_REVERSE_FOREACH(LLLayoutPanel* panelp, mPanels) // Should replace this when C++20 reverse view adaptor becomes available...
|
||||
{
|
||||
if (panelp->mAutoResize)
|
||||
{
|
||||
|
|
@ -951,7 +953,7 @@ void LLLayoutStack::updatePanelRect( LLLayoutPanel* resized_panel, const LLRect&
|
|||
AFTER_RESIZED_PANEL
|
||||
} which_panel = BEFORE_RESIZED_PANEL;
|
||||
|
||||
BOOST_FOREACH(LLLayoutPanel* panelp, mPanels)
|
||||
for (LLLayoutPanel* panelp : mPanels)
|
||||
{
|
||||
if (!panelp->getVisible() || panelp->mCollapsed)
|
||||
{
|
||||
|
|
@ -1042,6 +1044,7 @@ void LLLayoutStack::updatePanelRect( LLLayoutPanel* resized_panel, const LLRect&
|
|||
MIN_FRACTIONAL_SIZE,
|
||||
MAX_FRACTIONAL_SIZE);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -1058,8 +1061,8 @@ void LLLayoutStack::reshape(S32 width, S32 height, BOOL called_from_parent)
|
|||
|
||||
void LLLayoutStack::updateResizeBarLimits()
|
||||
{
|
||||
LLLayoutPanel* previous_visible_panelp = NULL;
|
||||
BOOST_REVERSE_FOREACH(LLLayoutPanel* visible_panelp, mPanels)
|
||||
LLLayoutPanel* previous_visible_panelp{ nullptr };
|
||||
BOOST_REVERSE_FOREACH(LLLayoutPanel* visible_panelp, mPanels) // Should replace this when C++20 reverse view adaptor becomes available...
|
||||
{
|
||||
if (!visible_panelp->getVisible() || visible_panelp->mCollapsed)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
// Project includes
|
||||
#include "lluictrlfactory.h"
|
||||
#include "lluiimage.h"
|
||||
#include "boost/foreach.hpp"
|
||||
|
||||
// registered in llui.cpp to avoid being left out by MS linker
|
||||
//static LLDefaultChildRegistry::Register<LLLoadingIndicator> r("loading_indicator");
|
||||
|
|
@ -52,7 +51,7 @@ LLLoadingIndicator::LLLoadingIndicator(const Params& p)
|
|||
|
||||
void LLLoadingIndicator::initFromParams(const Params& p)
|
||||
{
|
||||
BOOST_FOREACH(LLUIImage* image, p.images().image)
|
||||
for (LLUIImage* image : p.images().image)
|
||||
{
|
||||
mImages.push_back(image);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@
|
|||
#include "v2math.h"
|
||||
#include <set>
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include "llclipboard.h" // <FS:ND/ To let someone copy a menus text + accelerator to clipboard
|
||||
// static
|
||||
|
|
@ -2182,7 +2181,7 @@ void LLMenuGL::arrange( void )
|
|||
}
|
||||
else
|
||||
{
|
||||
BOOST_FOREACH(LLMenuItemGL* itemp, mItems)
|
||||
for (LLMenuItemGL* itemp : mItems)
|
||||
{
|
||||
// do first so LLMenuGLItemCall can call on_visible to determine if visible
|
||||
itemp->buildDrawLabel();
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
|
||||
const std::string NOTIFICATION_PERSIST_VERSION = "0.93";
|
||||
|
|
@ -445,14 +444,14 @@ LLNotificationTemplate::LLNotificationTemplate(const LLNotificationTemplate::Par
|
|||
mSoundName = p.sound;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const LLNotificationTemplate::UniquenessContext& context, p.unique.contexts)
|
||||
for (const LLNotificationTemplate::UniquenessContext& context : p.unique.contexts)
|
||||
{
|
||||
mUniqueContext.push_back(context.value);
|
||||
}
|
||||
|
||||
LL_DEBUGS("Notifications") << "notification \"" << mName << "\": tag count is " << p.tags.size() << LL_ENDL;
|
||||
|
||||
BOOST_FOREACH(const LLNotificationTemplate::Tag& tag, p.tags)
|
||||
for (const LLNotificationTemplate::Tag& tag : p.tags)
|
||||
{
|
||||
LL_DEBUGS("Notifications") << " tag \"" << std::string(tag.value) << "\"" << LL_ENDL;
|
||||
mTags.push_back(tag.value);
|
||||
|
|
@ -1161,7 +1160,7 @@ LLNotificationChannel::LLNotificationChannel(const Params& p)
|
|||
LLInstanceTracker<LLNotificationChannel, std::string>(p.name.isProvided() ? p.name : LLUUID::generateNewID().asString()),
|
||||
mName(p.name.isProvided() ? p.name : LLUUID::generateNewID().asString())
|
||||
{
|
||||
BOOST_FOREACH(const std::string& source, p.sources)
|
||||
for (const std::string& source : p.sources)
|
||||
{
|
||||
connectToChannel(source);
|
||||
}
|
||||
|
|
@ -1530,7 +1529,7 @@ void replaceFormText(LLNotificationForm::Params& form, const std::string& patter
|
|||
form.ignore.text = replace;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(LLNotificationForm::FormElement& element, form.form_elements.elements)
|
||||
for (LLNotificationForm::FormElement& element : form.form_elements.elements)
|
||||
{
|
||||
if (element.button.isChosen() && element.button.text() == pattern)
|
||||
{
|
||||
|
|
@ -1578,19 +1577,19 @@ bool LLNotifications::loadTemplates()
|
|||
|
||||
mTemplates.clear();
|
||||
|
||||
BOOST_FOREACH(LLNotificationTemplate::GlobalString& string, params.strings)
|
||||
for (const LLNotificationTemplate::GlobalString& string : params.strings)
|
||||
{
|
||||
mGlobalStrings[string.name] = string.value;
|
||||
}
|
||||
|
||||
std::map<std::string, LLNotificationForm::Params> form_templates;
|
||||
|
||||
BOOST_FOREACH(LLNotificationTemplate::Template& notification_template, params.templates)
|
||||
for (const LLNotificationTemplate::Template& notification_template : params.templates)
|
||||
{
|
||||
form_templates[notification_template.name] = notification_template.form;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(LLNotificationTemplate::Params& notification, params.notifications)
|
||||
for (LLNotificationTemplate::Params& notification : params.notifications)
|
||||
{
|
||||
if (notification.form_ref.form_template.isChosen())
|
||||
{
|
||||
|
|
@ -1644,7 +1643,7 @@ bool LLNotifications::loadVisibilityRules()
|
|||
|
||||
mVisibilityRules.clear();
|
||||
|
||||
BOOST_FOREACH(LLNotificationVisibilityRule::Rule& rule, params.rules)
|
||||
for (const LLNotificationVisibilityRule::Rule& rule : params.rules)
|
||||
{
|
||||
mVisibilityRules.push_back(LLNotificationVisibilityRulePtr(new LLNotificationVisibilityRule(rule)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -997,7 +997,7 @@ private:
|
|||
bool mIgnoreAllNotifications;
|
||||
|
||||
// <FS:Ansariel> Disable test API
|
||||
//boost::scoped_ptr<LLNotificationsListener> mListener;
|
||||
//std::unique_ptr<LLNotificationsListener> mListener;
|
||||
|
||||
std::vector<LLNotificationChannelPtr> mDefaultChannels;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include "llnotificationtemplate.h"
|
||||
#include "llsd.h"
|
||||
#include "llui.h"
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
LLNotificationsListener::LLNotificationsListener(LLNotifications & notifications) :
|
||||
LLEventAPI("LLNotifications",
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
#include "linden_common.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include "lltoolbar.h"
|
||||
|
||||
#include "llcommandmanager.h"
|
||||
|
|
@ -282,7 +281,7 @@ void LLToolBar::initFromParams(const LLToolBar::Params& p)
|
|||
mCenteringStack->addChild(mEndCenteringPanel);
|
||||
// </FS:Zi>
|
||||
|
||||
BOOST_FOREACH(LLCommandId id, p.commands)
|
||||
for (const auto& id : p.commands)
|
||||
{
|
||||
addCommand(id);
|
||||
}
|
||||
|
|
@ -480,7 +479,7 @@ BOOL LLToolBar::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
|||
// Determine which button the mouse was over during the click in case the context menu action
|
||||
// is intended to affect the button.
|
||||
mRightMouseTargetButton = NULL;
|
||||
BOOST_FOREACH(LLToolBarButton* button, mButtons)
|
||||
for (LLToolBarButton* button : mButtons)
|
||||
{
|
||||
LLRect button_rect;
|
||||
button->localRectToOtherView(button->getLocalRect(), &button_rect, this);
|
||||
|
|
@ -580,7 +579,7 @@ void LLToolBar::setButtonType(LLToolBarEnums::ButtonType button_type)
|
|||
void LLToolBar::resizeButtonsInRow(std::vector<LLToolBarButton*>& buttons_in_row, S32 max_row_girth)
|
||||
{
|
||||
// make buttons in current row all same girth
|
||||
BOOST_FOREACH(LLToolBarButton* button, buttons_in_row)
|
||||
for (LLToolBarButton* button : buttons_in_row)
|
||||
{
|
||||
if (getOrientation(mSideType) == LLLayoutStack::HORIZONTAL)
|
||||
{
|
||||
|
|
@ -781,7 +780,7 @@ void LLToolBar::updateLayoutAsNeeded()
|
|||
}
|
||||
else if (mLayoutStyle == LAYOUT_STYLE_EQUALIZE)
|
||||
{
|
||||
BOOST_FOREACH(LLToolBarButton* button, mButtons)
|
||||
for (LLToolBarButton* button : mButtons)
|
||||
{
|
||||
S32 width = button->getInitialWidth();
|
||||
if (width > equalized_width)
|
||||
|
|
@ -799,7 +798,7 @@ void LLToolBar::updateLayoutAsNeeded()
|
|||
}
|
||||
// </FS:Zi>
|
||||
|
||||
BOOST_FOREACH(LLToolBarButton* button, mButtons)
|
||||
for (LLToolBarButton* button : mButtons)
|
||||
{
|
||||
// <FS:Zi> Add equalized and fill layout options
|
||||
// button->reshape(button->mWidthRange.getMin(), button->mDesiredHeight);
|
||||
|
|
@ -1054,7 +1053,7 @@ void LLToolBar::createButtons()
|
|||
{
|
||||
std::set<LLUUID> set_flashing;
|
||||
|
||||
BOOST_FOREACH(LLToolBarButton* button, mButtons)
|
||||
for (LLToolBarButton* button : mButtons)
|
||||
{
|
||||
if (button->getFlashTimer() && button->getFlashTimer()->isFlashingInProgress())
|
||||
{
|
||||
|
|
@ -1072,7 +1071,7 @@ void LLToolBar::createButtons()
|
|||
mButtonMap.clear();
|
||||
mRightMouseTargetButton = NULL;
|
||||
|
||||
BOOST_FOREACH(LLCommandId& command_id, mButtonCommands)
|
||||
for (const LLCommandId& command_id : mButtonCommands)
|
||||
{
|
||||
LLToolBarButton* button = createButton(command_id);
|
||||
mButtons.push_back(button);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include "llui.h"
|
||||
#include "lluicolortable.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
LLUIColorTable::ColorParams::ColorParams()
|
||||
: value("value"),
|
||||
|
|
@ -234,7 +233,7 @@ bool LLUIColorTable::loadFromSettings()
|
|||
|
||||
// pass constraint=LLDir::ALL_SKINS because we want colors.xml from every
|
||||
// skin dir
|
||||
BOOST_FOREACH(std::string colors_path,
|
||||
for (const std::string& colors_path :
|
||||
gDirUtilp->findSkinnedFilenames(LLDir::SKINBASE, "colors.xml", LLDir::ALL_SKINS))
|
||||
{
|
||||
result |= loadFromFilename(colors_path, mLoadedColors);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include <sstream>
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include "llrender.h"
|
||||
|
|
@ -642,7 +641,7 @@ void LLView::deleteAllChildren()
|
|||
|
||||
void LLView::setAllChildrenEnabled(BOOL b)
|
||||
{
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
viewp->setEnabled(b);
|
||||
}
|
||||
|
|
@ -671,7 +670,7 @@ void LLView::onVisibilityChange ( BOOL new_visibility )
|
|||
{
|
||||
BOOL old_visibility;
|
||||
BOOL log_visibility_change = LLViewerEventRecorder::instance().getLoggingStatus();
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
if (!viewp)
|
||||
{
|
||||
|
|
@ -775,7 +774,7 @@ LLView* LLView::childrenHandleCharEvent(const std::string& desc, const METHOD& m
|
|||
{
|
||||
if ( getVisible() && getEnabled() )
|
||||
{
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
if ((viewp->*method)(c, mask, TRUE))
|
||||
{
|
||||
|
|
@ -794,7 +793,7 @@ LLView* LLView::childrenHandleCharEvent(const std::string& desc, const METHOD& m
|
|||
template <typename METHOD, typename XDATA>
|
||||
LLView* LLView::childrenHandleMouseEvent(const METHOD& method, S32 x, S32 y, XDATA extra, bool allow_mouse_block)
|
||||
{
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
S32 local_x = x - viewp->getRect().mLeft;
|
||||
S32 local_y = y - viewp->getRect().mBottom;
|
||||
|
|
@ -823,7 +822,7 @@ LLView* LLView::childrenHandleMouseEvent(const METHOD& method, S32 x, S32 y, XDA
|
|||
|
||||
LLView* LLView::childrenHandleToolTip(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
S32 local_x = x - viewp->getRect().mLeft;
|
||||
S32 local_y = y - viewp->getRect().mBottom;
|
||||
|
|
@ -855,7 +854,7 @@ LLView* LLView::childrenHandleDragAndDrop(S32 x, S32 y, MASK mask,
|
|||
// default to not accepting drag and drop, will be overridden by handler
|
||||
*accept = ACCEPT_NO;
|
||||
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
S32 local_x = x - viewp->getRect().mLeft;
|
||||
S32 local_y = y - viewp->getRect().mBottom;
|
||||
|
|
@ -881,7 +880,7 @@ LLView* LLView::childrenHandleDragAndDrop(S32 x, S32 y, MASK mask,
|
|||
|
||||
LLView* LLView::childrenHandleHover(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
S32 local_x = x - viewp->getRect().mLeft;
|
||||
S32 local_y = y - viewp->getRect().mBottom;
|
||||
|
|
@ -909,7 +908,7 @@ LLView* LLView::childFromPoint(S32 x, S32 y, bool recur)
|
|||
if (!getVisible())
|
||||
return NULL;
|
||||
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
S32 local_x = x - viewp->getRect().mLeft;
|
||||
S32 local_y = y - viewp->getRect().mBottom;
|
||||
|
|
@ -1435,7 +1434,7 @@ void LLView::reshape(S32 width, S32 height, BOOL called_from_parent)
|
|||
mRect.mTop = getRect().mBottom + height;
|
||||
|
||||
// move child views according to reshape flags
|
||||
BOOST_FOREACH(LLView* viewp, mChildList)
|
||||
for (LLView* viewp : mChildList)
|
||||
{
|
||||
if (viewp != NULL)
|
||||
{
|
||||
|
|
@ -1507,7 +1506,7 @@ LLRect LLView::calcBoundingRect()
|
|||
{
|
||||
LLRect local_bounding_rect = LLRect::null;
|
||||
|
||||
BOOST_FOREACH(LLView* childp, mChildList)
|
||||
for (LLView* childp : mChildList)
|
||||
{
|
||||
// ignore invisible and "top" children when calculating bounding rect
|
||||
// such as combobox popups
|
||||
|
|
@ -1670,7 +1669,7 @@ LLView* LLView::findChildView(const std::string& name, BOOL recurse) const
|
|||
LL_PROFILE_ZONE_SCOPED_CATEGORY_UI;
|
||||
|
||||
// Look for direct children *first*
|
||||
BOOST_FOREACH(LLView* childp, mChildList)
|
||||
for (LLView* childp : mChildList)
|
||||
{
|
||||
llassert(childp);
|
||||
if (childp->getName() == name)
|
||||
|
|
@ -1681,7 +1680,7 @@ LLView* LLView::findChildView(const std::string& name, BOOL recurse) const
|
|||
if (recurse)
|
||||
{
|
||||
// Look inside each child as well.
|
||||
BOOST_FOREACH(LLView* childp, mChildList)
|
||||
for (LLView* childp : mChildList)
|
||||
{
|
||||
llassert(childp);
|
||||
LLView* viewp = childp->findChildView(name, recurse);
|
||||
|
|
@ -2856,7 +2855,7 @@ S32 LLView::notifyParent(const LLSD& info)
|
|||
bool LLView::notifyChildren(const LLSD& info)
|
||||
{
|
||||
bool ret = false;
|
||||
BOOST_FOREACH(LLView* childp, mChildList)
|
||||
for (LLView* childp : mChildList)
|
||||
{
|
||||
ret = ret || childp->notifyChildren(info);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1973,50 +1973,14 @@ endif (WINDOWS)
|
|||
|
||||
# Add the xui files. This is handy for searching for xui elements
|
||||
# from within the IDE.
|
||||
# <FS:Ansariel> Make all XUI files accessible in Visual Studio
|
||||
#set(viewer_XUI_FILES
|
||||
# skins/default/colors.xml
|
||||
# skins/default/default_languages.xml
|
||||
# skins/default/textures/textures.xml
|
||||
# )
|
||||
#file(GLOB DEFAULT_XUI_FILE_GLOB_LIST
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/skins/*/xui/en/*.xml)
|
||||
#list(APPEND viewer_XUI_FILES ${DEFAULT_XUI_FILE_GLOB_LIST})
|
||||
|
||||
#file(GLOB DEFAULT_WIDGET_FILE_GLOB_LIST
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/skins/*/xui/en/widgets/*.xml)
|
||||
#list(APPEND viewer_XUI_FILES ${DEFAULT_WIDGET_FILE_GLOB_LIST})
|
||||
|
||||
## Cannot append empty lists in CMake, wait until we have files here.
|
||||
##file(GLOB SILVER_WIDGET_FILE_GLOB_LIST
|
||||
## ${CMAKE_CURRENT_SOURCE_DIR}/skins/silver/xui/en-us/widgets/*.xml)
|
||||
##list(APPEND viewer_XUI_FILES ${SILVER_WIDGET_FILE_GLOB_LIST})
|
||||
|
||||
#list(SORT viewer_XUI_FILES)
|
||||
|
||||
#source_group("XUI Files" FILES ${viewer_XUI_FILES})
|
||||
|
||||
#set_source_files_properties(${viewer_XUI_FILES}
|
||||
# PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
#list(APPEND viewer_SOURCE_FILES ${viewer_XUI_FILES})
|
||||
|
||||
file(GLOB_RECURSE viewer_XUI_FILES LIST_DIRECTORIES FALSE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/skins/*.xml)
|
||||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/skins PREFIX "XUI Files" FILES ${viewer_XUI_FILES})
|
||||
set_source_files_properties(${viewer_XUI_FILES}
|
||||
PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
list(APPEND viewer_SOURCE_FILES ${viewer_XUI_FILES})
|
||||
# </FS:Ansariel>
|
||||
|
||||
file(GLOB_RECURSE viewer_SHADER_FILES LIST_DIRECTORIES FALSE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/app_settings/shaders/*.glsl)
|
||||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/app_settings/shaders PREFIX "Shaders" FILES ${viewer_SHADER_FILES})
|
||||
set_source_files_properties(${viewer_SHADER_FILES}
|
||||
PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
list(APPEND viewer_SOURCE_FILES ${viewer_SHADER_FILES})
|
||||
|
||||
|
||||
# Add the shader sources
|
||||
file(GLOB_RECURSE viewer_SHADER_FILES LIST_DIRECTORIES FALSE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/app_settings/shaders/*.glsl)
|
||||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/app_settings/shaders PREFIX "Shaders" FILES ${viewer_SHADER_FILES})
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@
|
|||
#include "llworld.h"
|
||||
#include "llworldmap.h"
|
||||
#include "stringize.h"
|
||||
#include "boost/foreach.hpp"
|
||||
#include "llcorehttputil.h"
|
||||
#include "lluiusage.h"
|
||||
// [RLVa:KB] - Checked: 2011-11-04 (RLVa-1.4.4a)
|
||||
|
|
@ -2806,7 +2805,7 @@ void LLAgent::endAnimationUpdateUI()
|
|||
skip_list.insert(LLFloaterReg::findInstance("stats"));
|
||||
}
|
||||
// <FS:LO> //FIRE-6385: Show all script dialogs still after leaving mouselook
|
||||
BOOST_FOREACH(LLFloater *tmp, LLFloaterReg::getFloaterList("script_floater"))
|
||||
for (LLFloater *tmp : LLFloaterReg::getFloaterList("script_floater"))
|
||||
{
|
||||
skip_list.insert(tmp);
|
||||
}
|
||||
|
|
@ -2825,7 +2824,7 @@ void LLAgent::endAnimationUpdateUI()
|
|||
//LLFloaterIMContainer* im_box = LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container");
|
||||
//LLFloaterIMContainer::floater_list_t conversations;
|
||||
//im_box->getDetachedConversationFloaters(conversations);
|
||||
//BOOST_FOREACH(LLFloater* conversation, conversations)
|
||||
//for (LLFloater* conversation : conversations)
|
||||
//{
|
||||
// LL_INFOS() << "skip_list.insert(session_floater): " << conversation->getTitle() << LL_ENDL;
|
||||
// skip_list.insert(conversation);
|
||||
|
|
@ -2981,7 +2980,7 @@ void LLAgent::endAnimationUpdateUI()
|
|||
skip_list.insert(LLFloaterReg::findInstance("stats"));
|
||||
}
|
||||
// <FS:LO> //FIRE-6385: Show all script dialogs still when entering mouselook
|
||||
BOOST_FOREACH(LLFloater *tmp, LLFloaterReg::getFloaterList("script_floater"))
|
||||
for (LLFloater* tmp : LLFloaterReg::getFloaterList("script_floater"))
|
||||
{
|
||||
skip_list.insert(tmp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class LLTeleportRequest;
|
|||
|
||||
|
||||
|
||||
typedef boost::shared_ptr<LLTeleportRequest> LLTeleportRequestPtr;
|
||||
typedef std::shared_ptr<LLTeleportRequest> LLTeleportRequestPtr;
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Types
|
||||
|
|
@ -134,7 +134,7 @@ public:
|
|||
private:
|
||||
bool mInitialized;
|
||||
bool mFirstLogin;
|
||||
boost::shared_ptr<LLAgentListener> mListener;
|
||||
std::shared_ptr<LLAgentListener> mListener;
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Session
|
||||
|
|
|
|||
|
|
@ -1879,7 +1879,7 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(BOOL *hit_limit)
|
|||
|
||||
head_offset.clearVec();
|
||||
F32 fixup;
|
||||
if (gAgentAvatarp->hasPelvisFixup(fixup))
|
||||
if (gAgentAvatarp->hasPelvisFixup(fixup) && !gAgentAvatarp->isSitting())
|
||||
{
|
||||
head_offset[VZ] -= fixup;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include "llaccordionctrltab.h"
|
||||
#include "llagent.h"
|
||||
#include "llagentcamera.h"
|
||||
|
|
@ -1704,7 +1703,7 @@ void LLAppearanceMgr::removeOutfitPhoto(const LLUUID& outfit_id)
|
|||
sub_cat_array,
|
||||
outfit_item_array,
|
||||
LLInventoryModel::EXCLUDE_TRASH);
|
||||
BOOST_FOREACH(LLViewerInventoryItem* outfit_item, outfit_item_array)
|
||||
for (LLViewerInventoryItem* outfit_item : outfit_item_array)
|
||||
{
|
||||
LLViewerInventoryItem* linked_item = outfit_item->getLinkedItem();
|
||||
if (linked_item != NULL)
|
||||
|
|
@ -3843,7 +3842,7 @@ void update_base_outfit_after_ordering()
|
|||
sub_cat_array,
|
||||
outfit_item_array,
|
||||
LLInventoryModel::EXCLUDE_TRASH);
|
||||
BOOST_FOREACH(LLViewerInventoryItem* outfit_item, outfit_item_array)
|
||||
for (LLViewerInventoryItem* outfit_item : outfit_item_array)
|
||||
{
|
||||
LLViewerInventoryItem* linked_item = outfit_item->getLinkedItem();
|
||||
if (linked_item != NULL)
|
||||
|
|
@ -4160,7 +4159,7 @@ LLSD LLAppearanceMgr::dumpCOF() const
|
|||
LLUUID linked_asset_id(linked_item->getAssetUUID());
|
||||
md5.update((unsigned char*)linked_asset_id.mData, 16);
|
||||
U32 flags = linked_item->getFlags();
|
||||
md5.update(boost::lexical_cast<std::string>(flags));
|
||||
md5.update(std::to_string(flags));
|
||||
}
|
||||
else if (LLAssetType::AT_LINK_FOLDER != inv_item->getActualType())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@
|
|||
|
||||
// Third party library includes
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
|
@ -1401,7 +1400,7 @@ bool LLAppViewer::init()
|
|||
// LLSD item(LeapCommand);
|
||||
// LeapCommand.append(item);
|
||||
// }
|
||||
// BOOST_FOREACH(const std::string& leap, llsd::inArray(LeapCommand))
|
||||
// for (const auto& leap : llsd::inArray(LeapCommand))
|
||||
// {
|
||||
// LL_INFOS("InitInfo") << "processing --leap \"" << leap << '"' << LL_ENDL;
|
||||
// // We don't have any better description of this plugin than the
|
||||
|
|
@ -2755,7 +2754,7 @@ bool LLAppViewer::loadSettingsFromDirectory(const std::string& location_key,
|
|||
LL_ERRS() << "Invalid settings location list" << LL_ENDL;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const SettingsGroup& group, mSettingsLocationList->groups)
|
||||
for (const SettingsGroup& group : mSettingsLocationList->groups)
|
||||
{
|
||||
// skip settings groups that aren't the one we requested
|
||||
if (group.name() != location_key) continue;
|
||||
|
|
@ -2767,7 +2766,7 @@ bool LLAppViewer::loadSettingsFromDirectory(const std::string& location_key,
|
|||
return false;
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const SettingsFile& file, group.files)
|
||||
for (const SettingsFile& file : group.files)
|
||||
{
|
||||
// <FS:Ansariel> Skip quickprefs settings - we don't have a settings group
|
||||
// for it as it's not a regular settings file
|
||||
|
|
@ -2839,11 +2838,11 @@ bool LLAppViewer::loadSettingsFromDirectory(const std::string& location_key,
|
|||
std::string LLAppViewer::getSettingsFilename(const std::string& location_key,
|
||||
const std::string& file)
|
||||
{
|
||||
BOOST_FOREACH(const SettingsGroup& group, mSettingsLocationList->groups)
|
||||
for (const SettingsGroup& group : mSettingsLocationList->groups)
|
||||
{
|
||||
if (group.name() == location_key)
|
||||
{
|
||||
BOOST_FOREACH(const SettingsFile& settings_file, group.files)
|
||||
for (const SettingsFile& settings_file : group.files)
|
||||
{
|
||||
if (settings_file.name() == file)
|
||||
{
|
||||
|
|
@ -3561,7 +3560,7 @@ void LLAppViewer::initStrings()
|
|||
// Now that we've set "[sourceid]", have to go back through
|
||||
// default_trans_args and reinitialize all those other keys because some
|
||||
// of them, in turn, reference "[sourceid]".
|
||||
BOOST_FOREACH(std::string key, default_trans_args)
|
||||
for (const std::string& key : default_trans_args)
|
||||
{
|
||||
std::string brackets(key), nobrackets(key);
|
||||
// Invalid to inspect key[0] if key is empty(). But then, the entire
|
||||
|
|
|
|||
|
|
@ -921,7 +921,7 @@ protected:
|
|||
LLNotificationChiclet* const mChiclet;
|
||||
};
|
||||
|
||||
boost::scoped_ptr<ChicletNotificationChannel> mNotificationChannel;
|
||||
std::unique_ptr<ChicletNotificationChannel> mNotificationChannel;
|
||||
|
||||
LLNotificationChiclet(const Params& p);
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ namespace
|
|||
class ObjectInventoryFetcher: public LLVOInventoryListener
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<ObjectInventoryFetcher> ptr_t;
|
||||
typedef std::shared_ptr<ObjectInventoryFetcher> ptr_t;
|
||||
|
||||
ObjectInventoryFetcher(LLEventPump &pump, LLViewerObject* object, void* user_data) :
|
||||
mPump(pump),
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
#include "fsfloaterim.h"
|
||||
// </FS:CR>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include "boost/lexical_cast.hpp"
|
||||
|
||||
// <FS:CR> Commenting out, let the user decide
|
||||
|
|
@ -402,7 +401,7 @@ void LLConversationLog::deleteBackupLogs()
|
|||
std::vector<std::string> backup_logs;
|
||||
getListOfBackupLogs(backup_logs);
|
||||
|
||||
BOOST_FOREACH(const std::string& fullpath, backup_logs)
|
||||
for (const std::string& fullpath : backup_logs)
|
||||
{
|
||||
LLFile::remove(fullpath);
|
||||
}
|
||||
|
|
@ -444,7 +443,7 @@ bool LLConversationLog::moveLog(const std::string &originDirectory, const std::s
|
|||
while(LLFile::isfile(backupFileName))
|
||||
{
|
||||
++backupFileCount;
|
||||
backupFileName = targetDirectory + ".backup" + boost::lexical_cast<std::string>(backupFileCount);
|
||||
backupFileName = targetDirectory + ".backup" + std::to_string(backupFileCount);
|
||||
}
|
||||
|
||||
//Rename the file to its backup name so it is not overwritten
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@
|
|||
#include "llimview.h" //For LLIMModel
|
||||
#include "lltrans.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
//
|
||||
// Conversation items : common behaviors
|
||||
//
|
||||
|
|
@ -295,8 +293,7 @@ void LLConversationItemSession::updateName(LLConversationItemParticipant* partic
|
|||
// In the case of a P2P conversation, we need to grab the name of the other participant in the session instance itself
|
||||
// as we do not create participants for such a session.
|
||||
|
||||
LLFolderViewModelItem * itemp;
|
||||
BOOST_FOREACH(itemp, mChildren)
|
||||
for (auto itemp : mChildren)
|
||||
{
|
||||
LLConversationItem* current_participant = dynamic_cast<LLConversationItem*>(itemp);
|
||||
// Add the avatar uuid to the list (except if it's the own agent uuid)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include "llprocess.h"
|
||||
#include "llsdutil.h"
|
||||
#include "llstring.h"
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
// static
|
||||
const std::string LLExternalEditor::sFilenameMarker = "%s";
|
||||
|
|
@ -111,7 +110,7 @@ LLExternalEditor::EErrorCode LLExternalEditor::run(const std::string& file_path)
|
|||
params.executable = mProcessParams.executable;
|
||||
|
||||
// Substitute the filename marker in the command with the actual passed file name.
|
||||
BOOST_FOREACH(const std::string& arg, mProcessParams.args)
|
||||
for (const std::string& arg : mProcessParams.args)
|
||||
{
|
||||
std::string fixed(arg);
|
||||
LLStringUtil::replaceString(fixed, sFilenameMarker, file_path);
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ BOOL LLFloaterEditSky::postBuild()
|
|||
mSkyPresetCombo = getChild<LLComboBox>("sky_preset_combo");
|
||||
mMakeDefaultCheckBox = getChild<LLCheckBoxCtrl>("make_default_cb");
|
||||
mSaveButton = getChild<LLButton>("save");
|
||||
mSkyAdapter = boost::make_shared<LLSkySettingsAdapter>();
|
||||
mSkyAdapter = std::make_shared<LLSkySettingsAdapter>();
|
||||
|
||||
LLEnvironment::instance().setSkyListChange(boost::bind(&LLFloaterEditSky::onSkyPresetListChange, this));
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ BOOL LLFloaterEditWater::postBuild()
|
|||
mMakeDefaultCheckBox = getChild<LLCheckBoxCtrl>("make_default_cb");
|
||||
mSaveButton = getChild<LLButton>("save");
|
||||
|
||||
mWaterAdapter = boost::make_shared<LLWatterSettingsAdapter>();
|
||||
mWaterAdapter = std::make_shared<LLWatterSettingsAdapter>();
|
||||
|
||||
LLEnvironment::instance().setWaterListChange(boost::bind(&LLFloaterEditWater::onWaterPresetListChange, this));
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@
|
|||
// [RLVa:KB] - @pay
|
||||
#include "rlvactions.h"
|
||||
// [/RLVa:KB]
|
||||
#include "boost/foreach.hpp"
|
||||
|
||||
|
||||
const S32 EVENTS_PER_IDLE_LOOP_CURRENT_SESSION = 80;
|
||||
|
|
@ -809,12 +808,11 @@ void LLFloaterIMContainer::setVisible(BOOL visible)
|
|||
|
||||
void LLFloaterIMContainer::getDetachedConversationFloaters(floater_list_t& floaters)
|
||||
{
|
||||
typedef conversations_widgets_map::value_type conv_pair;
|
||||
LLFloaterIMNearbyChat *nearby_chat = LLFloaterReg::findTypedInstance<LLFloaterIMNearbyChat>("nearby_chat");
|
||||
|
||||
BOOST_FOREACH(conv_pair item, mConversationsWidgets)
|
||||
for (const auto& [key, fvi] : mConversationsWidgets)
|
||||
{
|
||||
LLConversationViewSession* widget = dynamic_cast<LLConversationViewSession*>(item.second);
|
||||
LLConversationViewSession* widget = dynamic_cast<LLConversationViewSession*>(fvi);
|
||||
if (widget)
|
||||
{
|
||||
LLFloater* session_floater = widget->getSessionFloater();
|
||||
|
|
|
|||
|
|
@ -511,7 +511,7 @@ void LLFloaterIMNearbyChatScreenChannel::arrangeToasts()
|
|||
//-----------------------------------------------------------------------------------------------
|
||||
//LLFloaterIMNearbyChatHandler
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
boost::scoped_ptr<LLEventPump> LLFloaterIMNearbyChatHandler::sChatWatcher(new LLEventStream("LLChat"));
|
||||
std::unique_ptr<LLEventPump> LLFloaterIMNearbyChatHandler::sChatWatcher(new LLEventStream("LLChat"));
|
||||
|
||||
LLFloaterIMNearbyChatHandler::LLFloaterIMNearbyChatHandler()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public:
|
|||
protected:
|
||||
virtual void initChannel();
|
||||
|
||||
static boost::scoped_ptr<LLEventPump> sChatWatcher;
|
||||
static std::unique_ptr<LLEventPump> sChatWatcher;
|
||||
|
||||
// <FS:Ansariel> Add notification callback for new chat
|
||||
new_chat_signal_t mNewChatSignal;
|
||||
|
|
|
|||
|
|
@ -1631,7 +1631,6 @@ void LLFloaterPreference::onBtnCancel(const LLSD& userdata)
|
|||
if (userdata.asString() == "closeadvanced")
|
||||
{
|
||||
LLFloaterReg::hideInstance("prefs_graphics_advanced");
|
||||
updateMaxComplexity();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ public:
|
|||
|
||||
// typedef std::map<std::string,std::pair<std::list<std::string>,std::list<std::string> > > DiffMap; // this version copies the lists etc., and thus is bad memory-wise
|
||||
typedef std::list<std::string> StringList;
|
||||
typedef boost::shared_ptr<StringList> StringListPtr;
|
||||
typedef std::shared_ptr<StringList> StringListPtr;
|
||||
typedef std::map<std::string, std::pair<StringListPtr,StringListPtr> > DiffMap;
|
||||
DiffMap mDiffsMap; // map, of filename to pair of list of changed element paths and list of errors
|
||||
|
||||
|
|
|
|||
|
|
@ -3526,9 +3526,11 @@ void LLIMMgr::addMessage(
|
|||
// Fetch group chat history, enabled by default.
|
||||
if (gSavedPerAccountSettings.getBOOL("FetchGroupChatHistory"))
|
||||
{
|
||||
std::string chat_url = gAgent.getRegion()->getCapability("ChatSessionRequest");
|
||||
LLCoros::instance().launch("chatterBoxHistoryCoro",
|
||||
boost::bind(&chatterBoxHistoryCoro, chat_url, session_id, from, msg, timestamp));
|
||||
std::string chat_url = gAgent.getRegionCapability("ChatSessionRequest");
|
||||
if (!chat_url.empty())
|
||||
{
|
||||
LLCoros::instance().launch("chatterBoxHistoryCoro", boost::bind(&chatterBoxHistoryCoro, chat_url, session_id, from, msg, timestamp));
|
||||
}
|
||||
}
|
||||
|
||||
// <FS:PP> Configurable IM sounds
|
||||
|
|
|
|||
|
|
@ -3325,7 +3325,7 @@ BOOL LLFolderBridge::dragCategoryIntoFolder(LLInventoryCategory* inv_cat,
|
|||
return accept;
|
||||
}
|
||||
|
||||
void warn_move_inventory(LLViewerObject* object, boost::shared_ptr<LLMoveInv> move_inv)
|
||||
void warn_move_inventory(LLViewerObject* object, std::shared_ptr<LLMoveInv> move_inv)
|
||||
{
|
||||
const char* dialog = NULL;
|
||||
if (object->flagScripted())
|
||||
|
|
@ -3338,7 +3338,7 @@ void warn_move_inventory(LLViewerObject* object, boost::shared_ptr<LLMoveInv> mo
|
|||
}
|
||||
|
||||
static LLNotificationPtr notification_ptr;
|
||||
static boost::shared_ptr<LLMoveInv> inv_ptr;
|
||||
static std::shared_ptr<LLMoveInv> inv_ptr;
|
||||
|
||||
// Notification blocks user from interacting with inventories so everything that comes after first message
|
||||
// is part of this message - don'r show it again
|
||||
|
|
@ -3451,7 +3451,7 @@ BOOL move_inv_category_world_to_agent(const LLUUID& object_id,
|
|||
if(drop && accept)
|
||||
{
|
||||
it = inventory_objects.begin();
|
||||
boost::shared_ptr<LLMoveInv> move_inv(new LLMoveInv);
|
||||
std::shared_ptr<LLMoveInv> move_inv(new LLMoveInv);
|
||||
move_inv->mObjectID = object_id;
|
||||
move_inv->mCategoryID = category_id;
|
||||
move_inv->mCallback = callback;
|
||||
|
|
@ -5559,7 +5559,7 @@ LLFontGL::StyleFlags LLMarketplaceFolderBridge::getLabelStyle() const
|
|||
|
||||
|
||||
// helper stuff
|
||||
bool move_task_inventory_callback(const LLSD& notification, const LLSD& response, boost::shared_ptr<LLMoveInv> move_inv)
|
||||
bool move_task_inventory_callback(const LLSD& notification, const LLSD& response, std::shared_ptr<LLMoveInv> move_inv)
|
||||
{
|
||||
LLFloaterOpenObject::LLCatAndWear* cat_and_wear = (LLFloaterOpenObject::LLCatAndWear* )move_inv->mUserData;
|
||||
LLViewerObject* object = gObjectList.findObject(move_inv->mObjectID);
|
||||
|
|
@ -6066,7 +6066,7 @@ BOOL LLFolderBridge::dragItemIntoFolder(LLInventoryItem* inv_item,
|
|||
if (accept && drop)
|
||||
{
|
||||
LLUUID item_id = inv_item->getUUID();
|
||||
boost::shared_ptr<LLMoveInv> move_inv (new LLMoveInv());
|
||||
std::shared_ptr<LLMoveInv> move_inv (new LLMoveInv());
|
||||
move_inv->mObjectID = inv_item->getParentUUID();
|
||||
two_uuids_t item_pair(mUUID, item_id);
|
||||
move_inv->mMoveList.push_back(item_pair);
|
||||
|
|
|
|||
|
|
@ -857,7 +857,7 @@ struct LLMoveInv
|
|||
void* mUserData;
|
||||
};
|
||||
|
||||
void warn_move_inventory(LLViewerObject* object, boost::shared_ptr<LLMoveInv> move_inv);
|
||||
bool move_task_inventory_callback(const LLSD& notification, const LLSD& response, boost::shared_ptr<LLMoveInv>);
|
||||
void warn_move_inventory(LLViewerObject* object, std::shared_ptr<LLMoveInv> move_inv);
|
||||
bool move_task_inventory_callback(const LLSD& notification, const LLSD& response, std::shared_ptr<LLMoveInv>);
|
||||
|
||||
#endif // LL_LLINVENTORYBRIDGE_H
|
||||
|
|
|
|||
|
|
@ -96,8 +96,6 @@
|
|||
#include "rlvlocks.h"
|
||||
// [/RLVa:KB]
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
// Firestorm includes
|
||||
#include "aoengine.h"
|
||||
#include "fsfloaterwearablefavorites.h"
|
||||
|
|
@ -3132,6 +3130,23 @@ bool get_selection_object_uuids(LLFolderView *root, uuid_vec_t& ids)
|
|||
void LLInventoryAction::doToSelected(LLInventoryModel* model, LLFolderView* root, const std::string& action, BOOL user_confirm)
|
||||
{
|
||||
std::set<LLFolderViewItem*> selected_items = root->getSelectionList();
|
||||
if (selected_items.empty()
|
||||
&& action != "wear"
|
||||
&& action != "wear_add"
|
||||
&& !isRemoveAction(action))
|
||||
{
|
||||
// Was item removed while user was checking menu?
|
||||
// "wear" and removal exlusions are due to use of
|
||||
// getInventorySelectedUUIDs() below
|
||||
LL_WARNS("Inventory") << "Menu tried to operate on empty selection" << LL_ENDL;
|
||||
|
||||
if (("copy" == action) || ("cut" == action))
|
||||
{
|
||||
LLClipboard::instance().reset();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Prompt the user and check for authorization for some marketplace active listing edits
|
||||
if (user_confirm && (("delete" == action) || ("cut" == action) || ("rename" == action) || ("properties" == action) || ("task_properties" == action) || ("open" == action)))
|
||||
|
|
|
|||
|
|
@ -3329,7 +3329,7 @@ BOOL dragItemIntoFolder(LLUUID folder_id, LLInventoryItem* inv_item, BOOL drop,
|
|||
|
||||
if (accept && drop)
|
||||
{
|
||||
boost::shared_ptr<LLMoveInv> move_inv (new LLMoveInv());
|
||||
std::shared_ptr<LLMoveInv> move_inv (new LLMoveInv());
|
||||
move_inv->mObjectID = inv_item->getParentUUID();
|
||||
std::pair<LLUUID, LLUUID> item_pair(folder_id, inv_item->getUUID());
|
||||
move_inv->mMoveList.push_back(item_pair);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
#include <boost/algorithm/string/trim.hpp>
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#if LL_MSVC
|
||||
#pragma warning(push)
|
||||
|
|
@ -802,7 +801,7 @@ bool LLLogChat::moveTranscripts(const std::string originDirectory,
|
|||
std::string backupFileName;
|
||||
unsigned backupFileCount;
|
||||
|
||||
BOOST_FOREACH(const std::string& fullpath, listOfFilesToMove)
|
||||
for (const std::string& fullpath : listOfFilesToMove)
|
||||
{
|
||||
backupFileCount = 0;
|
||||
newFullPath = targetDirectory + fullpath.substr(originDirectory.length(), std::string::npos);
|
||||
|
|
@ -816,7 +815,7 @@ bool LLLogChat::moveTranscripts(const std::string originDirectory,
|
|||
while(LLFile::isfile(backupFileName))
|
||||
{
|
||||
++backupFileCount;
|
||||
backupFileName = newFullPath + ".backup" + boost::lexical_cast<std::string>(backupFileCount);
|
||||
backupFileName = newFullPath + ".backup" + std::to_string(backupFileCount);
|
||||
}
|
||||
|
||||
//Rename the file to its backup name so it is not overwritten
|
||||
|
|
@ -873,7 +872,7 @@ void LLLogChat::deleteTranscripts()
|
|||
getListOfTranscriptFiles(list_of_transcriptions);
|
||||
getListOfTranscriptBackupFiles(list_of_transcriptions);
|
||||
|
||||
BOOST_FOREACH(const std::string& fullpath, list_of_transcriptions)
|
||||
for (const std::string& fullpath : list_of_transcriptions)
|
||||
{
|
||||
S32 retry_count = 0;
|
||||
while (retry_count < 5)
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ private:
|
|||
|
||||
void attemptComplete() { mAttemptComplete = true; } // In the future an event?
|
||||
|
||||
boost::scoped_ptr<LLLogin> mLoginModule;
|
||||
std::unique_ptr<LLLogin> mLoginModule;
|
||||
LLNotificationsInterface* mNotifications;
|
||||
|
||||
std::string mLoginState;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "llerror.h"
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
|
||||
|
|
@ -54,7 +53,7 @@ namespace LLMarketplaceInventoryNotifications
|
|||
llassert(!no_copy_payloads.empty());
|
||||
llassert(no_copy_cb_action != NULL);
|
||||
|
||||
BOOST_FOREACH(const LLSD& payload, no_copy_payloads)
|
||||
for (const LLSD& payload : no_copy_payloads)
|
||||
{
|
||||
(*no_copy_cb_action)(payload);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class LLMaterialHttpHandler : public LLHttpSDHandler
|
|||
{
|
||||
public:
|
||||
typedef boost::function<void(bool, const LLSD&)> CallbackFunction;
|
||||
typedef boost::shared_ptr<LLMaterialHttpHandler> ptr_t;
|
||||
typedef std::shared_ptr<LLMaterialHttpHandler> ptr_t;
|
||||
|
||||
LLMaterialHttpHandler(const std::string& method, CallbackFunction cback);
|
||||
|
||||
|
|
|
|||
|
|
@ -116,10 +116,10 @@ protected:
|
|||
|
||||
// Request (pure virtual base class for requests in the queue)
|
||||
class Request:
|
||||
public boost::enable_shared_from_this<Request>
|
||||
public std::enable_shared_from_this<Request>
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<Request> ptr_t;
|
||||
typedef std::shared_ptr<Request> ptr_t;
|
||||
|
||||
// Subclasses must implement this to build a payload for their request type.
|
||||
virtual LLSD getPayload() const = 0;
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ namespace {
|
|||
static S32 dump_num = 0;
|
||||
std::string make_dump_name(std::string prefix, S32 num)
|
||||
{
|
||||
return prefix + boost::lexical_cast<std::string>(num) + std::string(".xml");
|
||||
return prefix + std::to_string(num) + std::string(".xml");
|
||||
}
|
||||
void dump_llsd_to_file(const LLSD& content, std::string filename);
|
||||
LLSD llsd_from_file(std::string filename);
|
||||
|
|
@ -588,10 +588,10 @@ S32 LLMeshRepoThread::sRequestWaterLevel = 0;
|
|||
// LLMeshUploadThread
|
||||
|
||||
class LLMeshHandlerBase : public LLCore::HttpHandler,
|
||||
public boost::enable_shared_from_this<LLMeshHandlerBase>
|
||||
public std::enable_shared_from_this<LLMeshHandlerBase>
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<LLMeshHandlerBase> ptr_t;
|
||||
typedef std::shared_ptr<LLMeshHandlerBase> ptr_t;
|
||||
|
||||
LOG_CLASS(LLMeshHandlerBase);
|
||||
LLMeshHandlerBase(U32 offset, U32 requested_bytes)
|
||||
|
|
|
|||
|
|
@ -282,6 +282,16 @@ LLModelPreview::~LLModelPreview()
|
|||
mPreviewAvatar->markDead();
|
||||
mPreviewAvatar = NULL;
|
||||
}
|
||||
|
||||
mUploadData.clear();
|
||||
mTextureSet.clear();
|
||||
|
||||
for (U32 i = 0; i < LLModel::NUM_LODS; i++)
|
||||
{
|
||||
clearModel(i);
|
||||
}
|
||||
mBaseModel.clear();
|
||||
mBaseScene.clear();
|
||||
}
|
||||
|
||||
void LLModelPreview::updateDimentionsAndOffsets()
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue