fix some more warnings
This commit is contained in:
parent
5df4aee966
commit
a966731019
10 changed files with 23 additions and 20 deletions
|
|
@ -31,10 +31,9 @@
|
|||
using std::string;
|
||||
|
||||
|
||||
namespace asset
|
||||
{
|
||||
namespace test
|
||||
{
|
||||
namespace asset {
|
||||
namespace test{
|
||||
|
||||
using lumiera::P;
|
||||
using std::tr1::shared_ptr;
|
||||
using std::tr1::weak_ptr;
|
||||
|
|
@ -71,7 +70,7 @@ namespace asset
|
|||
class CustomSharedPtr_test : public Test
|
||||
{
|
||||
virtual void
|
||||
run (Arg arg)
|
||||
run (Arg)
|
||||
{
|
||||
check_refcounting ();
|
||||
check_shared_ownership ();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ namespace lumiera
|
|||
class LifeCycle_test : public Test
|
||||
{
|
||||
virtual void
|
||||
run (Arg arg)
|
||||
run (Arg)
|
||||
{
|
||||
ASSERT (basicInit, "the basic-init callback hasn't been invoked automatically");
|
||||
ASSERT (1 == basicInit, "the basic-init callback has been invoked more than once");
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ namespace lumiera
|
|||
*/
|
||||
class TypeList_test : public Test
|
||||
{
|
||||
virtual void run(Arg arg)
|
||||
void
|
||||
run (Arg)
|
||||
{
|
||||
AssembledClass wow_me_has_numbers;
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace util
|
|||
class RemoveFromSet_test : public Test
|
||||
{
|
||||
virtual void
|
||||
run (Arg arg)
|
||||
run (Arg)
|
||||
{
|
||||
test_remove (" nothing ");
|
||||
test_remove ("0");
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ namespace lib {
|
|||
{
|
||||
|
||||
virtual void
|
||||
run (Arg arg)
|
||||
run (Arg)
|
||||
{
|
||||
|
||||
cout << "checking ScopedHolder<Dummy>...\n";
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ namespace lib {
|
|||
{
|
||||
|
||||
virtual void
|
||||
run (Arg arg)
|
||||
run (Arg)
|
||||
{
|
||||
|
||||
cout << "checking ScopedHolder<Dummy>...\n";
|
||||
|
|
|
|||
|
|
@ -46,7 +46,8 @@ namespace util
|
|||
/** @test for util::Cmdline, wrapping various example cmdlines */
|
||||
class CmdlineWrapper_test : public Test
|
||||
{
|
||||
virtual void run (Arg arg)
|
||||
void
|
||||
run (Arg)
|
||||
{
|
||||
testLine("");
|
||||
testLine("\n\t ");
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ namespace test
|
|||
*/
|
||||
class TestOption_test : public Test
|
||||
{
|
||||
virtual void run(Arg arg)
|
||||
void
|
||||
run (Arg)
|
||||
{
|
||||
noOptions();
|
||||
help();
|
||||
|
|
@ -53,6 +54,7 @@ namespace test
|
|||
additionalCmd2();
|
||||
}
|
||||
|
||||
|
||||
/** @test performs the actual test for the option parser test::TestOption */
|
||||
void doIt (const string cmdline)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ namespace lib {
|
|||
*/
|
||||
|
||||
TransDummy (const TransDummy& o)
|
||||
: Dummy()
|
||||
{
|
||||
TRACE (test, "COPY-ctor TransDummy( ref=%x ) --> this=%x", &o,this);
|
||||
ASSERT (!o, "protocol violation: real copy operations inhibited");
|
||||
|
|
@ -113,18 +114,17 @@ namespace lib {
|
|||
|
||||
|
||||
/**********************************************************************************
|
||||
* @test ScopedHolder and ScopedPtrHolder are initially empty and copyable.
|
||||
* After taking ownership, they prohibit copy operations, manage the
|
||||
* lifecycle of the contained object and provide smart-ptr like access.
|
||||
* A series of identical tests is conducted both with the ScopedPtrHolder
|
||||
* (the contained objects are heap allocated but managed by the holder)
|
||||
* and with the ScopedHolder (objects placed inline)
|
||||
* @test growing (re-allocating) a vector with noncopyable objects, with the
|
||||
* help of a special Allocator and a custom \c transfer_control operation
|
||||
* provided by the contained objects. The idea is to allow some special
|
||||
* copy-operations for the purpose of re-allocations within the vector,
|
||||
* without requiring the object to be really copyable.
|
||||
*/
|
||||
class VectorTransfer_test : public Test
|
||||
{
|
||||
|
||||
virtual void
|
||||
run (Arg arg)
|
||||
run (Arg)
|
||||
{
|
||||
cout << "\n..setup table space for 2 elements\n";
|
||||
TransDummyVector table;
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ namespace lumiera
|
|||
|
||||
template<class TOOLImpl>
|
||||
static Tag&
|
||||
get (TOOLImpl* const concreteTool=0)
|
||||
get (TOOLImpl* const =0) // param used to pass type info
|
||||
{
|
||||
// we have a race condition here...
|
||||
Tag& t = TagTypeRegistry<TOOL,TOOLImpl>::tag;
|
||||
|
|
|
|||
Loading…
Reference in a new issue