Changeset 94cb686 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:19Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e7462e6
Parents:
8cce80b4
git-author:
Dzejrou <dzejrou@…> (2017-12-04 15:51:29)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:19)
Message:

cpp: fixed typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/streambuf.hpp

    r8cce80b4 r94cb686  
    108108            int_type snextc()
    109109            {
    110                 if (traits_type::eq(sbumpc, traits_type::eof()))
     110                if (traits_type::eq(sbumpc(), traits_type::eof()))
    111111                    return traits_type::eof();
    112112                else
     
    117117            {
    118118                if (read_avail_())
    119                     return traits_type::to_int_type(*input_next++);
     119                    return traits_type::to_int_type(*input_next_++);
    120120                else
    121121                    return uflow();
     
    125125            {
    126126                if (read_avail_())
    127                     return traits_type::to_int_type(*input_next++);
     127                    return traits_type::to_int_type(*input_next_);
    128128                else
    129129                    return underflow();
     
    144144                    return pbackfail(traits_type::to_int_type(c));
    145145                else
    146                     return traits_type::to_int_type(*(--input_next));
     146                    return traits_type::to_int_type(*(--input_next_));
    147147            }
    148148
     
    152152                    return pbackfail();
    153153                else
    154                     return traits_type::to_int_type(*(--input_next));
     154                    return traits_type::to_int_type(*(--input_next_));
    155155            }
    156156
     
    196196            }
    197197
    198             basic_strambuf& operator=(const basic_streambuf& rhs)
     198            basic_streambuf& operator=(const basic_streambuf& rhs)
    199199            {
    200200                input_begin_ = rhs.input_begin_;
     
    300300            setbuf(char_type* s, streamsize n)
    301301            {
    302                 return *this;
     302                return this;
    303303            }
    304304
    305305            virtual pos_type seekoff(off_type off, ios_base::seekdir way,
    306                                      ios_base::openmode which = ios_base::in | ops_base::out)
     306                                     ios_base::openmode which = ios_base::in | ios_base::out)
    307307            {
    308308                return pos_type(off_type(-1));
     
    341341                        break;
    342342
    343                     traits_type::asign(*s++, *input_next_++);
     343                    *s++ = *input_next_++;
    344344                }
    345345
     
    379379                    return 0;
    380380
    381                 char* = &s[0];
    382381                streamsize i{0};
    383382                for (; i <= n; ++i)
    384383                {
    385                     if (!write_avail_() && traits_type::eq_int_type(overflow(), eof))
     384                    if (!write_avail_() && traits_type::eq_int_type(overflow(), traits_type::eof()))
    386385                        break;
    387386
    388                     traits_type::assign(*s++, *output_next_++);
     387                    *output_next_++ = *s++;
    389388                }
    390389
     
    397396            }
    398397
     398        protected:
     399            char_type* input_begin_;
     400            char_type* input_next_;
     401            char_type* input_end_;
     402
     403            char_type* output_begin_;
     404            char_type* output_next_;
     405            char_type* output_end_;
     406
     407            locale locale_;
     408
    399409        private:
    400             value_type* input_begin_;
    401             value_type* input_next_;
    402             value_type* input_end_;
    403 
    404             value_type* output_begin_;
    405             value_type* output_next_;
    406             value_type* output_end_;
    407 
    408             locale locale_;
    409410
    410411            bool write_avail_() const
Note: See TracChangeset for help on using the changeset viewer.