From 877f10c2fc4bb89b4755b9cbc82977a92070c849 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 21 May 2001 07:24:57 +0000 Subject: Avoided some warnings. --- win32/ExternalLexer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/ExternalLexer.cxx b/win32/ExternalLexer.cxx index 871ddf1a0..d6df40343 100644 --- a/win32/ExternalLexer.cxx +++ b/win32/ExternalLexer.cxx @@ -242,13 +242,12 @@ void LexerManager::EnumerateLexers() { if (hFind != INVALID_HANDLE_VALUE) { //Found the first file... BOOL found = TRUE; - LexerLibrary *lib = NULL; SString to_open; while (found) { to_open.assign(sPath); to_open += FindFileData.cFileName; - lib = new LexerLibrary(to_open.c_str()); + LexerLibrary *lib = new LexerLibrary(to_open.c_str()); if (NULL != first) { last->next = lib; last = lib; -- cgit v1.2.3