convert Link<> to typed

Change-Id: Ia8dd531759ab4d609d1c3eeb31283612c0d70219
This commit is contained in:
Noel Grandin
2015-09-10 09:54:30 +02:00
parent 240d1f289c
commit 52a949e538
3 changed files with 7 additions and 7 deletions

View File

@@ -895,7 +895,7 @@ OUString Storage::GetUserName()
bool Storage::ValidateFAT()
{
Link<> aLink = StgIo::GetErrorLink();
Link<StgLinkArg&,void> aLink = StgIo::GetErrorLink();
ErrCode nErr = pIo->ValidateFATs();
StgIo::SetErrorLink( aLink );
return nErr == ERRCODE_NONE;

View File

@@ -336,14 +336,14 @@ sal_uLong Validator::FindUnrefedChains()
return FAT_OK;
}
namespace { struct ErrorLink : public rtl::Static<Link<>, ErrorLink > {}; }
namespace { struct ErrorLink : public rtl::Static<Link<StgLinkArg&,void>, ErrorLink > {}; }
void StgIo::SetErrorLink( const Link<>& rLink )
void StgIo::SetErrorLink( const Link<StgLinkArg&,void>& rLink )
{
ErrorLink::get() = rLink;
}
const Link<>& StgIo::GetErrorLink()
const Link<StgLinkArg&,void>& StgIo::GetErrorLink()
{
return ErrorLink::get();
}
@@ -379,7 +379,7 @@ sal_uLong StgIo::ValidateFATs()
StgLinkArg aArg;
aArg.aFile = pFileStrm->GetFileName();
aArg.nErr = nErr;
ErrorLink::get().Call( &aArg );
ErrorLink::get().Call( aArg );
bCopied = true;
}
// DBG_ASSERT( nErr == FAT_OK ,"Storage kaputt");

View File

@@ -64,8 +64,8 @@ public:
bool Init(); // set up an empty file
bool CommitAll(); // commit everything (root commit)
static void SetErrorLink( const Link<>& );
static const Link<>& GetErrorLink();
static void SetErrorLink( const Link<StgLinkArg&,void>& );
static const Link<StgLinkArg&,void>& GetErrorLink();
sal_uLong ValidateFATs( );
};