diff --git a/examples/Demo/Source/Demos/PropertiesDemo.cpp b/examples/Demo/Source/Demos/PropertiesDemo.cpp index 5f4c84fc85..75136be7f5 100644 --- a/examples/Demo/Source/Demos/PropertiesDemo.cpp +++ b/examples/Demo/Source/Demos/PropertiesDemo.cpp @@ -81,10 +81,10 @@ static Array createTextEditors() { Array comps; - comps.add (new TextPropertyComponent (Value ("This is a single-line Text Property"), "Text 1", 200, false)); - comps.add (new TextPropertyComponent (Value ("Another one"), "Text 2", 200, false)); + comps.add (new TextPropertyComponent (Value (var ("This is a single-line Text Property")), "Text 1", 200, false)); + comps.add (new TextPropertyComponent (Value (var ("Another one")), "Text 2", 200, false)); - comps.add (new TextPropertyComponent (Value ( + comps.add (new TextPropertyComponent (Value (var ( "Lorem ipsum dolor sit amet, cu mei labore admodum facilisi. Iriure iuvaret invenire ea vim, cum quod" "si intellegat delicatissimi an. Cetero recteque ei eos, his an scripta fastidii placerat. Nec et anc" "illae nominati corrumpit. Vis dictas audire accumsan ad, elit fabulas saperet mel eu.\n" @@ -93,7 +93,7 @@ static Array createTextEditors() " cum. Est aeque eripuit deleniti in, amet ferri recusabo ea nec. Cu persius maiorum corrumpit mei, i" "n ridens perpetua mea, pri nobis tation inermis an. Vis alii autem cotidieque ut, ius harum salutatu" "s ut. Mel eu purto veniam dissentias, malis doctus bonorum ne vel, mundi aperiam adversarium cu eum." - " Mei quando graeci te, dolore accusata mei te."), + " Mei quando graeci te, dolore accusata mei te.")), "Multi-line text", 1000, true)); diff --git a/modules/juce_data_structures/values/juce_Value.h b/modules/juce_data_structures/values/juce_Value.h index 9563bf8885..c25d35d058 100644 --- a/modules/juce_data_structures/values/juce_Value.h +++ b/modules/juce_data_structures/values/juce_Value.h @@ -225,7 +225,7 @@ private: // This declaration prevents accidental construction from an integer of 0, // which is possible in some compilers via an implicit cast to a pointer. - Value (void*) JUCE_DELETED_FUNCTION; + explicit Value (void*) JUCE_DELETED_FUNCTION; }; /** Writes a Value to an OutputStream as a UTF8 string. */