updated codes.
This commit is contained in:
parent
cead336d3b
commit
ca0595c61d
@ -53,7 +53,7 @@ add_executable(LifetimeTest datatype/LifetimeTest.cpp)
|
|||||||
set_example_project_folder("DataType/DataArray" LifetimeTest)
|
set_example_project_folder("DataType/DataArray" LifetimeTest)
|
||||||
|
|
||||||
add_executable(CollectionTest datatype/CollectionTest.cpp)
|
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)
|
add_executable(DataArrayTest datatype/DataArrayTest.cpp)
|
||||||
set_example_project_folder("DataType/DataArray" DataArrayTest)
|
set_example_project_folder("DataType/DataArray" DataArrayTest)
|
||||||
|
@ -130,9 +130,9 @@ void TestObjectQueue()
|
|||||||
|
|
||||||
for(i=0;i<5;i++) //只取出5个,剩几个给自动清理处理
|
for(i=0;i<5;i++) //只取出5个,剩几个给自动清理处理
|
||||||
{
|
{
|
||||||
QueueTestObject *obj=tab.Pop();
|
QueueTestObject *obj;
|
||||||
|
|
||||||
if(obj)
|
if(tab.Pop(obj))
|
||||||
delete obj;
|
delete obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ int main(int argc,char **argv)
|
|||||||
LoadFromTextFile<char>(ToOSString(argv[2]),pl_set);
|
LoadFromTextFile<char>(ToOSString(argv[2]),pl_set);
|
||||||
|
|
||||||
//lambda方式
|
//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;
|
std::cout<<std::setw(8)<<key.c_str()<<":"<<attr->MakeToString().c_str()<<std::endl;
|
||||||
});
|
});
|
||||||
|
@ -29,7 +29,7 @@ int main(int,char **)
|
|||||||
|
|
||||||
cout<<"Encode: "<<tmp<<endl;
|
cout<<"Encode: "<<tmp<<endl;
|
||||||
|
|
||||||
mos.ClearData();
|
mos.Clear();
|
||||||
|
|
||||||
if(!base64_decode(&mos,tmp,len))
|
if(!base64_decode(&mos,tmp,len))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user