1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 09:45:08 +00:00
serenity/Libraries/LibLine
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
..
CMakeLists.txt LibLine: Support multi-character key callbacks 2020-10-22 23:49:51 +02:00
Editor.cpp LibLine: Handle history across multiple concurrent sessions better 2021-01-11 21:09:36 +01:00
Editor.h LibLine: Handle history across multiple concurrent sessions better 2021-01-11 21:09:36 +01:00
InternalFunctions.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
KeyCallbackMachine.cpp LibLine: Don't ignore ^C inputs when there are no registered handlers 2021-01-06 19:20:36 +01:00
KeyCallbackMachine.h LibLine: Support multi-character key callbacks 2020-10-22 23:49:51 +02:00
Span.h LibLine: Remove unused header in Span.h 2020-05-29 07:59:45 +02:00
StringMetrics.h LibLine: Implement support for C-V<key> 2021-01-10 16:58:08 +01:00
Style.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
SuggestionDisplay.h LibLine: Removed unused private field m_prompt_metrics 2020-08-04 17:42:08 +02:00
SuggestionManager.cpp Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
SuggestionManager.h Shell+LibLine: Record the input offset of completions 2020-10-04 23:12:28 +02:00
VT.h LibLine: Refactor suggestion handling and display logic out 2020-05-23 01:31:41 +02:00
XtermSuggestionDisplay.cpp Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf 2021-01-11 21:06:32 +01:00