From 3b6774fc688939e318fb87f4343a99363b26fc4a Mon Sep 17 00:00:00 2001 From: Pawel Piecuch Date: Sun, 4 Aug 2024 00:56:07 +0200 Subject: [PATCH] cleanup --- scene/debugconsole/figlet_font.cpp | 12 +++++------- scene/debugconsole/figlet_font.h | 6 +++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/scene/debugconsole/figlet_font.cpp b/scene/debugconsole/figlet_font.cpp index cef12da177fa..863f861efc85 100644 --- a/scene/debugconsole/figlet_font.cpp +++ b/scene/debugconsole/figlet_font.cpp @@ -29,9 +29,9 @@ /**************************************************************************/ /* -Copyright (c) 2014, Enrico Bertolazzi (enrico.bertolazzi@unitn.it) -All rights reserved. -*/ + * Copyright (c) 2014, Enrico Bertolazzi (enrico.bertolazzi@unitn.it) + * All rights reserved. + */ #include "figlet_font.h" #include @@ -44,8 +44,6 @@ All rights reserved. namespace Figlet { -using namespace std; - typedef unsigned short u_short; Banner::Banner( @@ -58,8 +56,8 @@ Banner::Banner( const char *_MappingFrom, const char *_MappingTo) : characters(_characters), Hardblank(_Hardblank), Height(_Height), FontMaxLen(_FontMaxLen), FontSize(_FontSize), charPosition(0), mappingFrom(_MappingFrom), mappingTo(_MappingTo), printMode(_PrintMode) { - fill(charToTable, charToTable + maxTableSize, 0); // caratteri non noti mappati in spazi - fill(rspaces, rspaces + Height, 0); + std::fill(charToTable, charToTable + maxTableSize, 0); // caratteri non noti mappati in spazi + std::fill(rspaces, rspaces + Height, 0); for (unsigned i = 0; i < FontSize; ++i) { unsigned ipos = unsigned(characters[i].nchar); if (ipos < maxTableSize) { diff --git a/scene/debugconsole/figlet_font.h b/scene/debugconsole/figlet_font.h index ffb5e588620d..ff26675cd1a1 100644 --- a/scene/debugconsole/figlet_font.h +++ b/scene/debugconsole/figlet_font.h @@ -29,9 +29,9 @@ /**************************************************************************/ /* -Copyright (c) 2014, Enrico Bertolazzi (email: enrico.bertolazzi@unitn.it) -All rights reserved. -*/ + * Copyright (c) 2014, Enrico Bertolazzi (email: enrico.bertolazzi@unitn.it) + * All rights reserved. + */ // check for bugged compiler #ifdef _MSC_VER