1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-14 02:07:36 +00:00
serenity/Libraries/LibMarkdown
Lenny Maiorani e6f907a155 AK: Simplify constructors and conversions from nullptr_t
Problem:
- Many constructors are defined as `{}` rather than using the ` =
  default` compiler-provided constructor.
- Some types provide an implicit conversion operator from `nullptr_t`
  instead of requiring the caller to default construct. This violates
  the C++ Core Guidelines suggestion to declare single-argument
  constructors explicit
  (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c46-by-default-declare-single-argument-constructors-explicit).

Solution:
- Change default constructors to use the compiler-provided default
  constructor.
- Remove implicit conversion operators from `nullptr_t` and change
  usage to enforce type consistency without conversion.
2021-01-12 09:11:45 +01:00
..
Block.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
CMakeLists.txt LibMarkdown: Parse horizontal rules 2021-01-02 02:41:15 +01:00
CodeBlock.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
CodeBlock.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
Document.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Document.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
Heading.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Heading.h LibMarkdown: Don't parse lines starting with a space as heading 2020-10-26 19:13:19 +01:00
HorizontalRule.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
HorizontalRule.h LibMarkdown: Parse horizontal rules 2021-01-02 02:41:15 +01:00
List.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
List.h LibMarkdown: Take a 'view_width' argument for render_for_terminal() 2020-09-27 21:14:18 +02:00
Paragraph.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Paragraph.h LibMarkdown: Parse paragraphs line-wise 2020-09-27 21:14:18 +02:00
Table.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Table.h LibMarkdown: Add support for Tables 2020-09-27 21:14:18 +02:00
Text.cpp Vector: Implement find, find_if, find_first_matching in terms of AK::find* 2021-01-11 19:45:05 +01:00
Text.h LibMarkdown: Add a Text(String) constructor 2020-09-27 21:14:18 +02:00