loplugin:oncevar (clang-cl)

Change-Id: I118da42ad7a42e4d081fd9901e230a0318a77f73
This commit is contained in:
Stephan Bergmann
2017-08-18 10:10:51 +02:00
parent 8106bea9e9
commit 7742f5142b
2 changed files with 2 additions and 3 deletions

View File

@@ -589,7 +589,7 @@ bool WinOpenGLContext::ImplInit()
// now setup the shared context; this needs a temporary context already
// set up in order to work
int attribs [] =
int const attribs [] =
{
#ifdef DBG_UTIL
WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_DEBUG_BIT_ARB,

View File

@@ -1144,11 +1144,10 @@ static bool ImplGetFontAttrFromFile( const OUString& rFontFileURL,
rDFA.SetPitch(PITCH_DONTKNOW);
// Create temporary file name
char aFileName[] = "soAAT.fot";
char aResourceName[512];
int nMaxLen = sizeof(aResourceName)/sizeof(*aResourceName) - 16;
int nLen = ::GetTempPathA( nMaxLen, aResourceName );
::strncpy( aResourceName + nLen, aFileName, std::max( 0, nMaxLen - nLen ));
::strncpy( aResourceName + nLen, "soAAT.fot", std::max( 0, nMaxLen - nLen ));
::DeleteFileA( aResourceName );
// Create font resource file (typically with a .fot file name extension).