]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormFloat.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormFloat.C
index 18977d76a692a0d59ec80e726c1965691be8233c..c683fbcfbade875b25067ebba6b4cc76e1c65b48 100644 (file)
@@ -28,6 +28,8 @@
 
 using lyx::support::contains;
 
+using std::string;
+
 
 namespace {
 
@@ -158,13 +160,13 @@ void FormFloat::update()
        string placement(controller().params().placement);
        bool const wide = controller().params().wide;
 
-       bool const here_definitely = contains(placement, "H");
+       bool const here_definitely = contains(placement, 'H');
 
-       bool const top    = contains(placement, "t");
-       bool const bottom = contains(placement, "b");
-       bool const page   = contains(placement, "p");
-       bool const here   = contains(placement, "h");
-       bool const force  = contains(placement, "!");
+       bool const top    = contains(placement, 't');
+       bool const bottom = contains(placement, 'b');
+       bool const page   = contains(placement, 'p');
+       bool const here   = contains(placement, 'h');
+       bool const force  = contains(placement, '!');
        bool const alternatives = top || bottom || page || (here && !wide);
 
        if (alternatives) {