Skip to content

Commit

Permalink
[modernization] Added missing delete statements
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanAlling-DojoFive committed Jan 27, 2023
1 parent 64a8711 commit 024d02e
Show file tree
Hide file tree
Showing 24 changed files with 47 additions and 70 deletions.
11 changes: 0 additions & 11 deletions srecord/input/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@
bool srecord::input_file::ignore_checksums_default = false;


srecord::input_file::input_file() :
file_name("standard input"),
line_number(1),
prev_was_newline(false),
vfp(stdin),
checksum(0),
ignore_checksums(ignore_checksums_default)
{
}


bool
srecord::input_file::is_binary()
const
Expand Down
6 changes: 3 additions & 3 deletions srecord/input/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,17 +322,17 @@ class input_file:
/**
* The default constructor. Do not use.
*/
input_file();
input_file() = delete;

/**
* The copy constructor. Do not use.
*/
input_file(const input_file &);
input_file(const input_file &) = delete;

/**
* the assignment operator. Do not use.
*/
input_file &operator=(const input_file &);
input_file &operator=(const input_file &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/input/file/needham.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ class input_file_needham:
/**
* The default constructor. Do not use.
*/
input_file_needham();
input_file_needham() = delete;

/**
* The copy constructor. Do not use.
*/
input_file_needham(const input_file_needham &);
input_file_needham(const input_file_needham &) = delete;

/**
* The assignment operator. Do not use.
*/
input_file_needham &operator=(const input_file_needham &);
input_file_needham &operator=(const input_file_needham &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/file/tektronix_extended.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ class input_file_tektronix_extended:
/**
* The assignment operator. Do not use.
*/
input_file_tektronix_extended &operator=(
const input_file_tektronix_extended &) = delete;
input_file_tektronix_extended &operator=(const input_file_tektronix_extended &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/input/file/ti_tagged.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ class input_file_ti_tagged:
/**
* The default constructor. Do not use.
*/
input_file_ti_tagged();
input_file_ti_tagged() = delete;

/**
* The copy constructor. Do not use.
*/
input_file_ti_tagged(const input_file_ti_tagged &);
input_file_ti_tagged(const input_file_ti_tagged &) = delete;

/**
* The assignment operator. Do not use.
*/
input_file_ti_tagged &operator=(const input_file_ti_tagged &);
input_file_ti_tagged &operator=(const input_file_ti_tagged &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/input/file/ti_tagged_16.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ class input_file_ti_tagged_16:
/**
* The default constructor. Do not use.
*/
input_file_ti_tagged_16();
input_file_ti_tagged_16() = delete;

/**
* The copy constructor. Do not use.
*/
input_file_ti_tagged_16(const input_file_ti_tagged_16 &);
input_file_ti_tagged_16(const input_file_ti_tagged_16 &) = delete;

/**
* The assignment operator. Do not use.
*/
input_file_ti_tagged_16 &operator=(const input_file_ti_tagged_16 &);
input_file_ti_tagged_16 &operator=(const input_file_ti_tagged_16 &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/checksum/bitnot.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ class input_filter_checksum_bitnot:
/**
* The assignment operator. Do not use.
*/
input_filter_checksum_bitnot &operator=(
const input_filter_checksum_bitnot &) = delete;
input_filter_checksum_bitnot &operator=(const input_filter_checksum_bitnot &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/checksum/negative.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ class input_filter_checksum_negative:
/**
* The assignment operator. Do not use.
*/
input_filter_checksum_negative &operator=(
const input_filter_checksum_negative &) = delete;
input_filter_checksum_negative &operator=(const input_filter_checksum_negative &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/checksum/positive.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ class input_filter_checksum_positive:
/**
* The assignment operator. Do not use.
*/
input_filter_checksum_positive &operator=(
const input_filter_checksum_positive &) = delete;
input_filter_checksum_positive &operator=(const input_filter_checksum_positive &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/interval/minimum.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ class input_filter_interval_minimum:
/**
* The assignment operator. Do not use.
*/
input_filter_interval_minimum &operator=(
const input_filter_interval_minimum &) = delete;
input_filter_interval_minimum &operator=(const input_filter_interval_minimum &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/message/adler16.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ class input_filter_message_adler16:
/**
* The assignment operator. Do not use.
*/
input_filter_message_adler16 &operator=(
const input_filter_message_adler16 &) = delete;
input_filter_message_adler16 &operator=(const input_filter_message_adler16 &) = delete;
};

};
Expand Down
6 changes: 2 additions & 4 deletions srecord/input/filter/message/adler32.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,12 @@ class input_filter_message_adler32:
/**
* The copy constructor. Do not use.
*/
input_filter_message_adler32(
const input_filter_message_adler32 &) = delete;
input_filter_message_adler32(const input_filter_message_adler32 &) = delete;

/**
* The assignment operator. Do not use.
*/
input_filter_message_adler32 &operator=(
const input_filter_message_adler32 &) = delete;
input_filter_message_adler32 &operator=(const input_filter_message_adler32 &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/message/fletcher16.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ class input_filter_message_fletcher16:
/**
* The assignment operator. Do not use.
*/
input_filter_message_fletcher16 &operator=(
const input_filter_message_fletcher16 &) = delete;
input_filter_message_fletcher16 &operator=(const input_filter_message_fletcher16 &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/input/filter/message/fletcher32.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ class input_filter_message_fletcher32:
/**
* The assignment operator. Do not use.
*/
input_filter_message_fletcher32 &operator=(
const input_filter_message_fletcher32 &) = delete;
input_filter_message_fletcher32 &operator=(const input_filter_message_fletcher32 &) = delete;
};

};
Expand Down
4 changes: 2 additions & 2 deletions srecord/output/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,12 @@ class output_file:
/**
* The copy constructor. Do not use.
*/
output_file(const output_file &);
output_file(const output_file &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file &operator=(const output_file &);
output_file &operator=(const output_file &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,17 @@ class output_file_asm:
/**
* The default constructor. Do not use.
*/
output_file_asm();
output_file_asm() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_asm(const output_file_asm &);
output_file_asm(const output_file_asm &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_asm &operator=(const output_file_asm &);
output_file_asm &operator=(const output_file_asm &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/emon52.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ class output_file_emon52:
/**
* The default constructor. Do not use.
*/
output_file_emon52();
output_file_emon52() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_emon52(const output_file_emon52 &);
output_file_emon52(const output_file_emon52 &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_emon52 &operator=(const output_file_emon52 &);
output_file_emon52 &operator=(const output_file_emon52 &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/fastload.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,17 @@ class output_file_fastload:
/**
* The default constructor. Do not use.
*/
output_file_fastload();
output_file_fastload() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_fastload(const output_file_fastload &);
output_file_fastload(const output_file_fastload &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_fastload &operator=(const output_file_fastload &);
output_file_fastload &operator=(const output_file_fastload &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/output/file/formatted_binary.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ class output_file_formatted_binary:
/**
* The assignment operator. Do not use.
*/
output_file_formatted_binary &operator=(
const output_file_formatted_binary &) = delete;
output_file_formatted_binary &operator=(const output_file_formatted_binary &) = delete;
};

};
Expand Down
3 changes: 1 addition & 2 deletions srecord/output/file/four_packed_code.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ class output_file_four_packed_code:
/**
* The assignment operator. Do not use.
*/
output_file_four_packed_code &operator=(
const output_file_four_packed_code &) = delete;
output_file_four_packed_code &operator=(const output_file_four_packed_code &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/mips_flash.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ class output_file_mips_flash:
/**
* The default constructor. Do not use.
*/
output_file_mips_flash();
output_file_mips_flash() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_mips_flash(const output_file_mips_flash &);
output_file_mips_flash(const output_file_mips_flash &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_mips_flash &operator=(const output_file_mips_flash &);
output_file_mips_flash &operator=(const output_file_mips_flash &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/mos_tech.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,17 @@ class output_file_mos_tech:
/**
* The default constructor. Do not use.
*/
output_file_mos_tech();
output_file_mos_tech() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_mos_tech(const output_file_mos_tech &);
output_file_mos_tech(const output_file_mos_tech &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_mos_tech &operator=(const output_file_mos_tech &);
output_file_mos_tech &operator=(const output_file_mos_tech &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/signetics.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ class output_file_signetics:
/**
* The default constructor. Do not use.
*/
output_file_signetics();
output_file_signetics() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_signetics(const output_file_signetics &);
output_file_signetics(const output_file_signetics &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_signetics &operator=(const output_file_signetics &);
output_file_signetics &operator=(const output_file_signetics &) = delete;
};

};
Expand Down
6 changes: 3 additions & 3 deletions srecord/output/file/trs80.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ class output_file_trs80:
/**
* The default constructor. Do not use.
*/
output_file_trs80();
output_file_trs80() = delete;

/**
* The copy constructor. Do not use.
*/
output_file_trs80(const output_file_trs80 &);
output_file_trs80(const output_file_trs80 &) = delete;

/**
* The assignment operator. Do not use.
*/
output_file_trs80 &operator=(const output_file_trs80 &);
output_file_trs80 &operator=(const output_file_trs80 &) = delete;
};

};
Expand Down

0 comments on commit 024d02e

Please sign in to comment.