Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tkorsi committed Jan 25, 2024
1 parent 7bc3564 commit f1db56a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/cpp/charset/iconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ TDescriptor::TDescriptor(const char* from, const char* to)

TDescriptor::~TDescriptor() {
if (!Invalid()) {
auto descriptor = static_cast<iconv_t>(Descriptor_);
iconv_close(descriptor);
iconv_close(static_cast<iconv_t>(Descriptor_));
}
}

Expand All @@ -34,8 +33,7 @@ size_t NICONVPrivate::RecodeImpl(const TDescriptor& descriptor, const char* in,
char* outPtr = out;
size_t inSizeMod = inSize;
size_t outSizeMod = outSize;
auto descr = static_cast<iconv_t>(descriptor.Get());
size_t res = iconv(descr, &inPtr, &inSizeMod, &outPtr, &outSizeMod);
size_t res = iconv(static_cast<iconv_t>(descriptor.Get()), &inPtr, &inSizeMod, &outPtr, &outSizeMod);

read = inSize - inSizeMod;
written = outSize - outSizeMod;
Expand Down

0 comments on commit f1db56a

Please sign in to comment.