From: Georg Baum Date: Wed, 3 Dec 2014 20:08:13 +0000 (+0100) Subject: Remove unneeded typedef X-Git-Tag: 2.2.0alpha1~1487 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=49af9db6237f3d7c64c41cb3a4fac81be51e602a;p=lyx.git Remove unneeded typedef docstring is already defined in strfwd.h (which is included from docstring.h). There are only two possible cases: Either the typedef in docstring.h defines an identical type (then it is not needed), or it defines a different type (then it generates a compilation error) => it is not needed. --- diff --git a/src/support/docstring.h b/src/support/docstring.h index 5eea0111a3..096bc00322 100644 --- a/src/support/docstring.h +++ b/src/support/docstring.h @@ -19,13 +19,6 @@ namespace lyx { -/** - * String type for storing the main text in UCS4 encoding. - * Use std::string only in cases 7-bit ASCII is to be manipulated - * within the variable. - */ -typedef std::basic_string docstring; - /// Creates a docstring from a C string of ASCII characters docstring const from_ascii(char const *); diff --git a/src/support/strfwd.h b/src/support/strfwd.h index e40ec1c4b8..10411cda22 100644 --- a/src/support/strfwd.h +++ b/src/support/strfwd.h @@ -68,7 +68,11 @@ typedef basic_ostringstream, allocator > ostringst namespace lyx { -/// String type for storing the main text in UCS4 encoding +/** + * String type for storing the main text in UCS4 encoding. + * Use std::string only in cases 7-bit ASCII is to be manipulated + * within the variable. + */ typedef std::basic_string, std::allocator > docstring;