V2 llcommon merge
This commit is contained in:
@@ -91,13 +91,12 @@ void ll_cleanup_apr()
|
||||
//
|
||||
//LLAPRPool
|
||||
//
|
||||
LLAPRPool::LLAPRPool(apr_pool_t *parent, apr_size_t size, BOOL releasePoolFlag)
|
||||
{
|
||||
mParent = parent ;
|
||||
mReleasePoolFlag = releasePoolFlag ;
|
||||
mMaxSize = size ;
|
||||
mPool = NULL ;
|
||||
|
||||
LLAPRPool::LLAPRPool(apr_pool_t *parent, apr_size_t size, BOOL releasePoolFlag)
|
||||
: mParent(parent),
|
||||
mReleasePoolFlag(releasePoolFlag),
|
||||
mMaxSize(size),
|
||||
mPool(NULL)
|
||||
{
|
||||
createAPRPool() ;
|
||||
}
|
||||
|
||||
@@ -399,7 +398,7 @@ S32 LLAPRFile::read(void *buf, S32 nbytes)
|
||||
//llassert_always(mFile); (ASC-TUDCC) -HgB
|
||||
if(!mFile)
|
||||
{
|
||||
llwarns << "apr mFile is removed by somebody else. Can not write." << llendl ;
|
||||
llwarns << "apr mFile is removed by somebody else. Can not read." << llendl ;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -324,7 +324,12 @@ void llofstream::close()
|
||||
if(is_open())
|
||||
{
|
||||
if (_Filebuffer->close() == 0)
|
||||
{
|
||||
_Myios::setstate(ios_base::failbit); /*Flawfinder: ignore*/
|
||||
}
|
||||
delete _Filebuffer;
|
||||
_Filebuffer = NULL;
|
||||
_ShouldClose = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,6 +93,13 @@ inline const LLReflective* LLMetaPropertyT<LLUUID>::get(const LLReflective* obje
|
||||
return NULL;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline const LLReflective* LLMetaPropertyT<bool>::get(const LLReflective* object) const
|
||||
{
|
||||
checkObjectClass(object);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline LLSD LLMetaPropertyT<S32>::getLLSD(const LLReflective* object) const
|
||||
{
|
||||
@@ -111,6 +118,12 @@ inline LLSD LLMetaPropertyT<LLUUID>::getLLSD(const LLReflective* object) const
|
||||
return *(getProperty(object));
|
||||
}
|
||||
|
||||
template <>
|
||||
inline LLSD LLMetaPropertyT<bool>::getLLSD(const LLReflective* object) const
|
||||
{
|
||||
return *(getProperty(object));
|
||||
}
|
||||
|
||||
template<class TObject, class TProperty>
|
||||
class LLMetaPropertyTT : public LLMetaPropertyT<TProperty>
|
||||
{
|
||||
|
||||
@@ -943,6 +943,8 @@ void LLMetaClassT<LLPermissions>::reflectProperties(LLMetaClass& meta_class)
|
||||
{
|
||||
reflectProperty(meta_class, "mCreator", &LLPermissions::mCreator);
|
||||
reflectProperty(meta_class, "mOwner", &LLPermissions::mOwner);
|
||||
reflectProperty(meta_class, "mGroup", &LLPermissions::mGroup);
|
||||
reflectProperty(meta_class, "mIsGroupOwned", &LLPermissions::mIsGroupOwned);
|
||||
}
|
||||
|
||||
// virtual
|
||||
|
||||
Reference in New Issue
Block a user