updated codes.

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-08-14 20:03:38 +08:00
parent cead336d3b
commit ca0595c61d
4 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ add_executable(LifetimeTest datatype/LifetimeTest.cpp)
set_example_project_folder("DataType/DataArray" LifetimeTest)
add_executable(CollectionTest datatype/CollectionTest.cpp)
set_example_project_folder("DataType/DataArray" CollectionTest)
cm_example_project("DataType/DataArray" CollectionTest)
add_executable(DataArrayTest datatype/DataArrayTest.cpp)
set_example_project_folder("DataType/DataArray" DataArrayTest)

View File

@ -130,9 +130,9 @@ void TestObjectQueue()
for(i=0;i<5;i++) //只取出5个,剩几个给自动清理处理
{
QueueTestObject *obj=tab.Pop();
QueueTestObject *obj;
if(obj)
if(tab.Pop(obj))
delete obj;
}

View File

@ -38,7 +38,7 @@ int main(int argc,char **argv)
LoadFromTextFile<char>(ToOSString(argv[2]),pl_set);
//lambda方式
pl_set.Enum([](const String<char> &key,PAttribBase<char> *attr)
pl_set.Enum([](const String<char> &key,PAttribBase<char> * &attr)
{
std::cout<<std::setw(8)<<key.c_str()<<":"<<attr->MakeToString().c_str()<<std::endl;
});

View File

@ -29,7 +29,7 @@ int main(int,char **)
cout<<"Encode: "<<tmp<<endl;
mos.ClearData();
mos.Clear();
if(!base64_decode(&mos,tmp,len))
{