Skip to content

Commit

Permalink
pretty curlies
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Feb 14, 2017
1 parent 6b45f8c commit a82ce37
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions inst/include/Rcpp/iostream/Rstreambuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,18 @@ namespace Rcpp {
}

template <> inline int Rstreambuf<true>::overflow(int c ) {
if (c == traits_type::eof())
return traits_type::eof();
else
{
if (c != traits_type::eof()) {
char_type ch = traits_type::to_char_type(c);
return xsputn(&ch, 1) == 1 ? c : traits_type::eof();
}
return c;
}
template <> inline int Rstreambuf<false>::overflow(int c ) {
if (c == traits_type::eof())
return traits_type::eof();
else
{
if (c != traits_type::eof()) {
char_type ch = traits_type::to_char_type(c);
return xsputn(&ch, 1) == 1 ? c : traits_type::eof();
}
return c;
}

template <> inline int Rstreambuf<true>::sync(){
Expand Down

0 comments on commit a82ce37

Please sign in to comment.