Kaydet (Commit) 712351ff authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-fsanitize=function

Regression introduced with 1f08bff3 "new
loplugin:shouldreturnbool" (and which this commit partly reverts), as
store::OStorePageBIOS::Ace::constructor is passed to rtl_cache_create in
store::OStorePageBIOS::AceCache::AceCache (store/source/storbios.cxx).

Change-Id: Ia96b456cab4832fc29b6d2abdff082b3cb6f2c79
üst 320a5b88
......@@ -396,12 +396,13 @@ OStorePageBIOS::Ace::~Ace()
m_prev->m_next = m_next;
}
void
int
SAL_CALL OStorePageBIOS::Ace::constructor (
void * obj, SAL_UNUSED_PARAMETER void * /* arg */)
{
Ace * ace = static_cast<Ace*>(obj);
ace->m_next = ace->m_prev = ace;
return 1;
}
OStorePageBIOS::Ace *
......
......@@ -141,7 +141,7 @@ public:
Ace();
~Ace();
static void SAL_CALL constructor (void * obj, void * arg);
static int SAL_CALL constructor (void * obj, void * arg);
static Ace * find (Ace * head, sal_uInt32 addr);
static void insert (Ace * head, Ace * entry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment