diff options
author | Luke <luke.wilde@live.co.uk> | 2020-12-31 00:44:53 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-31 01:47:41 +0100 |
commit | 0f6658900793cd745cfe9537aa74da666762aea1 (patch) | |
tree | 86659f2508c2da2e51e01a6a4b5dc92de33b61e9 | |
parent | 22250780ffa755c48597c4930d62dfdcbf99f37f (diff) | |
download | serenity-0f6658900793cd745cfe9537aa74da666762aea1.zip |
Everywhere: Fix more typos
-rw-r--r-- | Applications/PixelPaint/Image.cpp | 4 | ||||
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.cpp | 2 | ||||
-rw-r--r-- | Kernel/Devices/AsyncDeviceRequest.cpp | 2 | ||||
-rw-r--r-- | Kernel/WaitQueue.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibELF/DynamicLoader.cpp | 6 | ||||
-rw-r--r-- | Libraries/LibELF/DynamicObject.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibJS/Tests/builtins/Array/Array.prototype.sort.js | 2 | ||||
-rw-r--r-- | Libraries/LibRegex/RegexParser.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibTTF/Glyf.cpp | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/Applications/PixelPaint/Image.cpp b/Applications/PixelPaint/Image.cpp index c130998e7c..09a075dfe0 100644 --- a/Applications/PixelPaint/Image.cpp +++ b/Applications/PixelPaint/Image.cpp @@ -95,7 +95,7 @@ RefPtr<Image> Image::create_from_file(const String& file_path) auto layer = Layer::create_with_size(*image, { width, height }, name); layer->set_location({ json_layer_object.get("locationx").to_i32(), json_layer_object.get("locationy").to_i32() }); layer->set_opacity_percent(json_layer_object.get("opacity_percent").to_i32()); - layer->set_visible(json_layer_object.get("visable").as_bool()); + layer->set_visible(json_layer_object.get("visible").as_bool()); layer->set_selected(json_layer_object.get("selected").as_bool()); auto bitmap_base64_encoded = json_layer_object.get("bitmap").as_string(); @@ -126,7 +126,7 @@ void Image::save(const String& file_path) const json_layer.add("locationx", layer.location().x()); json_layer.add("locationy", layer.location().y()); json_layer.add("opacity_percent", layer.opacity_percent()); - json_layer.add("visable", layer.is_visible()); + json_layer.add("visible", layer.is_visible()); json_layer.add("selected", layer.is_selected()); json_layer.add("bitmap", encode_base64(bmp_dumber.dump(layer.bitmap()))); } diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp index 7ef7230bbd..26b98d8756 100644 --- a/DevTools/UserspaceEmulator/Emulator.cpp +++ b/DevTools/UserspaceEmulator/Emulator.cpp @@ -1013,7 +1013,7 @@ u32 Emulator::virt$mmap(u32 params_addr) // The loader needs this functionality to load .data just after .text. // Luckily, since the loader calls mmap for .data right after it calls mmap for .text, // the emulator will allocate a chunk of memory that is just after what we allocated for .text - // becuase of the way we currently allocate VM. + // because of the way we currently allocate VM. ASSERT(params.addr == final_address); } diff --git a/Kernel/Devices/AsyncDeviceRequest.cpp b/Kernel/Devices/AsyncDeviceRequest.cpp index 29112bcfe5..07665b874e 100644 --- a/Kernel/Devices/AsyncDeviceRequest.cpp +++ b/Kernel/Devices/AsyncDeviceRequest.cpp @@ -48,7 +48,7 @@ AsyncDeviceRequest::~AsyncDeviceRequest() // At that point no sub-request should be adding more requests and all // sub-requests should be completed (either succeeded, failed, or cancelled). // Which means there should be no more pending sub-requests and the - // entire AsyncDeviceRequest hirarchy should be immutable. + // entire AsyncDeviceRequest hierarchy should be immutable. for (auto& sub_request : m_sub_requests_complete) { ASSERT(is_completed_result(sub_request.m_result)); // Shouldn't need any locking anymore ASSERT(sub_request.m_parent_request == this); diff --git a/Kernel/WaitQueue.cpp b/Kernel/WaitQueue.cpp index 0da7a9f676..f99f15a92a 100644 --- a/Kernel/WaitQueue.cpp +++ b/Kernel/WaitQueue.cpp @@ -74,7 +74,7 @@ void WaitQueue::wake_one() void WaitQueue::wake_n(u32 wake_count) { if (wake_count == 0) - return; // should we assert instaed? + return; // should we assert instead? ScopedSpinLock lock(m_lock); #ifdef WAITQUEUE_DEBUG dbg() << "WaitQueue @ " << this << ": wake_n(" << wake_count << ")"; diff --git a/Libraries/LibELF/DynamicLoader.cpp b/Libraries/LibELF/DynamicLoader.cpp index 7e635a4994..8938f9f263 100644 --- a/Libraries/LibELF/DynamicLoader.cpp +++ b/Libraries/LibELF/DynamicLoader.cpp @@ -315,7 +315,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size) case R_386_NONE: // Apparently most loaders will just skip these? // Seems if the 'link editor' generates one something is funky with your code - VERBOSE("None relocation. No symbol, no nothin.\n"); + VERBOSE("None relocation. No symbol, no nothing.\n"); break; case R_386_32: { auto symbol = relocation.symbol(); @@ -356,7 +356,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size) // The "__do_global_dtors_aux" function in libgcc_s.so needs this symbol, // but we do not use that function so we don't actually need to resolve this symbol. // The reason we can't resolve it here is that the symbol is defined in libc.so, - // but there's a circular dependecy between libgcc_s.so and libc.so, + // but there's a circular dependency between libgcc_s.so and libc.so, // we deal with it by first loading libgcc_s and then libc. // So we cannot find this symbol at this time (libc is not yet loaded). if (m_filename == "libgcc_s.so" && !strcmp(symbol.name(), "__cxa_finalize")) { @@ -396,7 +396,7 @@ void DynamicLoader::do_relocations(size_t total_tls_size) case R_386_TLS_TPOFF: { VERBOSE("Relocation type: R_386_TLS_TPOFF at offset %X\n", relocation.offset()); auto symbol = relocation.symbol(); - // For some reason, LibC has a R_386_TLS_TPOFF that referes to the undefined symbol.. huh + // For some reason, LibC has a R_386_TLS_TPOFF that refers to the undefined symbol.. huh if (relocation.symbol_index() == 0) break; VERBOSE("Symbol index: %d\n", symbol.index()); diff --git a/Libraries/LibELF/DynamicObject.cpp b/Libraries/LibELF/DynamicObject.cpp index f025a3a5d8..4f446203d7 100644 --- a/Libraries/LibELF/DynamicObject.cpp +++ b/Libraries/LibELF/DynamicObject.cpp @@ -449,7 +449,7 @@ DynamicObject::SymbolLookupResult DynamicObject::lookup_symbol(const ELF::Dynami { VERBOSE("looking up symbol: %s\n", symbol.name()); if (!symbol.is_undefined()) { - VERBOSE("symbol is defiend in its object\n"); + VERBOSE("symbol is defined in its object\n"); return { true, symbol.value(), (FlatPtr)symbol.address().as_ptr(), &symbol.object() }; } ASSERT(m_global_symbol_lookup_func); diff --git a/Libraries/LibJS/Tests/builtins/Array/Array.prototype.sort.js b/Libraries/LibJS/Tests/builtins/Array/Array.prototype.sort.js index d32c85b4fa..1b05995be2 100644 --- a/Libraries/LibJS/Tests/builtins/Array/Array.prototype.sort.js +++ b/Libraries/LibJS/Tests/builtins/Array/Array.prototype.sort.js @@ -190,7 +190,7 @@ describe("Array.prototype.sort", () => { expect(() => arr.sort()).toThrow(TestError); }); - test("that it does not use deleteProperty unnecesarily", () => { + test("that it does not use deleteProperty unnecessarily", () => { var obj = new Proxy( { 0: 5, 1: 4, 2: 3, length: 3 }, { diff --git a/Libraries/LibRegex/RegexParser.cpp b/Libraries/LibRegex/RegexParser.cpp index 2afbad64c7..33ade43661 100644 --- a/Libraries/LibRegex/RegexParser.cpp +++ b/Libraries/LibRegex/RegexParser.cpp @@ -239,7 +239,7 @@ ALWAYS_INLINE bool PosixExtendedParser::parse_repetition_symbol(ByteCode& byteco if (nongreedy) consume(); - // Note: dont touch match_length_minimum, it's already correct + // Note: don't touch match_length_minimum, it's already correct bytecode_to_repeat.insert_bytecode_repetition_min_one(bytecode_to_repeat, !nongreedy); return !has_error(); diff --git a/Libraries/LibTTF/Glyf.cpp b/Libraries/LibTTF/Glyf.cpp index f74502a69a..7ad25cd4e1 100644 --- a/Libraries/LibTTF/Glyf.cpp +++ b/Libraries/LibTTF/Glyf.cpp @@ -400,7 +400,7 @@ static void get_ttglyph_offsets(const ReadonlyBytes& slice, u32 num_points, u32 void Glyf::Glyph::raster_inner(Rasterizer& rasterizer, Gfx::AffineTransform& affine) const { - // Get offets for flags, x, and y. + // Get offset for flags, x, and y. u16 num_points = be_u16(m_slice.offset_pointer((m_num_contours - 1) * 2)) + 1; u16 num_instructions = be_u16(m_slice.offset_pointer(m_num_contours * 2)); u32 flags_offset = m_num_contours * 2 + 2 + num_instructions; |