Ver código fonte

LibWeb: Declare variable with the auto keyword

Use the auto keyword instead of the full type name like we do elsewhere
in the codebase.
Kenneth Myhra 3 anos atrás
pai
commit
1e5d107649
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Userland/Libraries/LibWeb/FileAPI/Blob.cpp

+ 1 - 1
Userland/Libraries/LibWeb/FileAPI/Blob.cpp

@@ -129,7 +129,7 @@ DOM::ExceptionOr<NonnullRefPtr<Blob>> Blob::create(Optional<Vector<BlobPart>> co
         byte_buffer = TRY_OR_RETURN_OOM(process_blob_parts(blob_parts.value(), options));
         byte_buffer = TRY_OR_RETURN_OOM(process_blob_parts(blob_parts.value(), options));
     }
     }
 
 
-    String type = String::empty();
+    auto type = String::empty();
     // 3. If the type member of the options argument is not the empty string, run the following sub-steps:
     // 3. If the type member of the options argument is not the empty string, run the following sub-steps:
     if (options.has_value() && !options->type.is_empty()) {
     if (options.has_value() && !options->type.is_empty()) {
         // 1. If the type member is provided and is not the empty string, let t be set to the type dictionary member.
         // 1. If the type member is provided and is not the empty string, let t be set to the type dictionary member.