Skip to content

Commit

Permalink
Merge pull request #31 from wasv/byte-fix
Browse files Browse the repository at this point in the history
Fix for reference to 'byte' is ambiguous.
  • Loading branch information
eljuguetero authored Sep 22, 2021
2 parents 27005b7 + f8e3be2 commit f4bebd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions bitfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ Dmitry Teytelman [[email protected]] 14 Jun 2006 [applied 13 Aug 2006]:
#include <time.h>
#include "bitrev.h"

using namespace std;

BitFile::BitFile()
: length(0)
, buffer(0)
Expand Down Expand Up @@ -607,14 +605,14 @@ uint32_t BitFile::saveAs(FILE_STYLE style, const char *device,
return clip;
}

void BitFile::error(const string &str)
void BitFile::error(const std::string &str)
{
errorStr=str;
Error=true;
fprintf(logfile,"%s\n",str.c_str());
}

void BitFile::readField(string &field, FILE *fp)
void BitFile::readField(std::string &field, FILE *fp)
{
byte t[2];
fread(t,1,2,fp);
Expand Down
2 changes: 0 additions & 2 deletions srecfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ Modifyied from srecdec
#include <string.h>
#include <stdlib.h>

using namespace std;

int SrecFile::DecodeSRecordLine(char *source, unsigned char *dest, S_Record *SRec)
{
char buffer[16];
Expand Down

0 comments on commit f4bebd0

Please sign in to comment.