loplugin:oncevar (clang-cl)
Change-Id: I118da42ad7a42e4d081fd9901e230a0318a77f73
This commit is contained in:
@@ -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,
|
||||
|
@@ -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).
|
||||
|
Reference in New Issue
Block a user