]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.C
Fix several warnings regarding unused variable/arguments.
[lyx.git] / src / insets / insetspecialchar.C
index 0524855dc050f543e523a4e94337d79f5377ec68..4e913c1c32afa33e7126681b24f946c57452644f 100644 (file)
@@ -263,7 +263,7 @@ int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
 }
 
 
-int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
+int InsetSpecialChar::linuxdoc(Buffer const *, ostream & os) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -286,7 +286,7 @@ int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
 }
 
 
-int InsetSpecialChar::docbook(Buffer const * buf, ostream & os) const
+int InsetSpecialChar::docbook(Buffer const *, ostream & os) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -321,3 +321,15 @@ void InsetSpecialChar::validate(LaTeXFeatures & features) const
                features.lyxarrow = true;
        }
 }
+
+
+bool InsetSpecialChar::isLetter() const
+{
+       return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK;
+}
+
+
+bool InsetSpecialChar::isSpace() const
+{
+       return kind_ == PROTECTED_SEPARATOR;
+}