Skip to content

Commit

Permalink
BaseTools: Qualify cerr in header file
Browse files Browse the repository at this point in the history
Minor cleanup

using namespace std in a header is infectious and therefore not best
practice. The declaration build preprocessor may be disabled, which
causes these error commands to cause build errors.

Signed-off-by: Dionna Glaze <[email protected]>
  • Loading branch information
deeglaze committed Jan 9, 2025
1 parent 5532372 commit d508f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BaseTools/Source/C/VfrCompile/Pccts/h/PBlackBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DllExportPCCTS ParserBlackBox {
{
if (f == NULL)
{
cerr << "invalid file pointer\n";
std::cerr << "invalid file pointer\n";
}
else
{
Expand All @@ -104,7 +104,7 @@ class DllExportPCCTS ParserBlackBox {
FILE *f = fopen(fname, "r");
if ( f==NULL ) {
openByBlackBox = 0;
cerr << "cannot open " << fname << "\n"; return;
std::cerr << "cannot open " << fname << "\n"; return;
}
else {
openByBlackBox = 1;
Expand Down

0 comments on commit d508f68

Please sign in to comment.