mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix compilation with gcc 4.6
This commit is contained in:
parent
947c34364c
commit
b148629d56
@ -66,6 +66,13 @@ IconvProcessor::IconvProcessor(string tocode, string fromcode)
|
||||
{}
|
||||
|
||||
|
||||
// for gcc 4.6
|
||||
IconvProcessor::IconvProcessor(IconvProcessor && other)
|
||||
: tocode_(move(other.tocode_)), fromcode_(move(other.fromcode_)),
|
||||
h_(move(other.h_))
|
||||
{}
|
||||
|
||||
|
||||
bool IconvProcessor::init()
|
||||
{
|
||||
if (h_)
|
||||
|
@ -62,8 +62,8 @@ public:
|
||||
char * out_buffer, size_t max_out_size);
|
||||
/// target encoding
|
||||
std::string to() const { return tocode_; }
|
||||
// required by g++ 4.7
|
||||
IconvProcessor(IconvProcessor &&) = default;
|
||||
// required by g++ 4.6
|
||||
IconvProcessor(IconvProcessor && other);
|
||||
};
|
||||
|
||||
/// Get the global IconvProcessor instance of the current thread for
|
||||
|
Loading…
Reference in New Issue
Block a user