Using a local type as a template argument is a C++11-ism

Change-Id: I1eddd4382f5ebaf9db43cd4351fc02e66b2cc9ad
This commit is contained in:
Takeshi Abe 2014-03-24 03:49:05 +09:00
parent 45c1c85354
commit 4cd8a6fbaa

View file

@ -305,6 +305,12 @@ SfxStyleSheetBasePool* SfxObjectShell::GetStyleSheetPool()
return 0;
}
struct Styles_Impl
{
SfxStyleSheetBase *pSource;
SfxStyleSheetBase *pDest;
};
void SfxObjectShell::LoadStyles
(
SfxObjectShell &rSource /* the document template from which
@ -321,12 +327,6 @@ void SfxObjectShell::LoadStyles
*/
{
struct Styles_Impl
{
SfxStyleSheetBase *pSource;
SfxStyleSheetBase *pDest;
};
SfxStyleSheetBasePool *pSourcePool = rSource.GetStyleSheetPool();
DBG_ASSERT(pSourcePool, "Source-DocumentShell ohne StyleSheetPool");
SfxStyleSheetBasePool *pMyPool = GetStyleSheetPool();