summaryrefslogtreecommitdiff
path: root/Userland/Services/SpiceAgent
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-02-18 16:11:05 -0500
committerAndreas Kling <kling@serenityos.org>2023-02-18 23:56:24 +0100
commit9c1dbf1ac50dd7767f2aef5da006b247ae45fa4c (patch)
treed699539ebd4b105cb0aa2c684cce38ba08c163fb /Userland/Services/SpiceAgent
parent856d0202f2fb32df47a45844775c1dbba08c24a7 (diff)
downloadserenity-9c1dbf1ac50dd7767f2aef5da006b247ae45fa4c.zip
SpiceAgent: Rename `ClipboardType::JPG` to `ClipboardType::JPEG`
Diffstat (limited to 'Userland/Services/SpiceAgent')
-rw-r--r--Userland/Services/SpiceAgent/SpiceAgent.cpp6
-rw-r--r--Userland/Services/SpiceAgent/SpiceAgent.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/SpiceAgent/SpiceAgent.cpp b/Userland/Services/SpiceAgent/SpiceAgent.cpp
index 68fd353eab..417962901a 100644
--- a/Userland/Services/SpiceAgent/SpiceAgent.cpp
+++ b/Userland/Services/SpiceAgent/SpiceAgent.cpp
@@ -46,7 +46,7 @@ Optional<SpiceAgent::ClipboardType> SpiceAgent::mime_type_to_clipboard_type(Depr
if (mime == "text/plain")
return ClipboardType::Text;
else if (mime == "image/jpeg")
- return ClipboardType::JPG;
+ return ClipboardType::JPEG;
else if (mime == "image/bmp")
return ClipboardType::BMP;
else if (mime == "image/png" || mime == "image/x-serenityos")
@@ -100,7 +100,7 @@ void SpiceAgent::on_message_received()
switch (type) {
case ClipboardType::PNG:
case ClipboardType::BMP:
- case ClipboardType::JPG:
+ case ClipboardType::JPEG:
found_type = type;
break;
default:
@@ -153,7 +153,7 @@ void SpiceAgent::on_message_received()
if (bmp_decoder->initialize())
frame_or_error = bmp_decoder->frame(0);
}
- } else if (type == ClipboardType::JPG) {
+ } else if (type == ClipboardType::JPEG) {
if (Gfx::JPEGImageDecoderPlugin::sniff({ data_buffer.data(), data_buffer.size() }).release_value_but_fixme_should_propagate_errors()) {
auto jpeg_decoder = Gfx::JPEGImageDecoderPlugin::create({ data_buffer.data(), data_buffer.size() }).release_value_but_fixme_should_propagate_errors();
if (jpeg_decoder->initialize())
diff --git a/Userland/Services/SpiceAgent/SpiceAgent.h b/Userland/Services/SpiceAgent/SpiceAgent.h
index a6e705f06f..f51afe57c5 100644
--- a/Userland/Services/SpiceAgent/SpiceAgent.h
+++ b/Userland/Services/SpiceAgent/SpiceAgent.h
@@ -81,7 +81,7 @@ public:
PNG,
BMP,
TIFF,
- JPG,
+ JPEG,
FileList,
__Count
};