From a54ffa744af0b90fef0954b57cad4e2f90d877c3 Mon Sep 17 00:00:00 2001 From: Anton Obzhirov Date: Tue, 16 Jun 2020 15:12:37 +0100 Subject: [PATCH] Fix logging for debug build. Change-Id: Ic820c299dc038bce3c9b08a5fdd5d11d388bdaa6 --- dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp | 4 ++-- dali-toolkit/internal/controls/text-controls/text-field-impl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp index 68aac48..611ed78 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp @@ -370,7 +370,7 @@ void TextEditor::SetProperty( BaseObject* object, Property::Index index, const P case Toolkit::TextEditor::Property::GRAB_HANDLE_IMAGE: { const std::string imageFileName = value.Get< std::string >(); - DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextEditor %p GRAB_HANDLE_IMAGE %s\n", impl.mController.Get(), imageFileName ); + DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextEditor %p GRAB_HANDLE_IMAGE %s\n", impl.mController.Get(), imageFileName.c_str() ); if( impl.mDecorator && imageFileName.size() ) { @@ -382,7 +382,7 @@ void TextEditor::SetProperty( BaseObject* object, Property::Index index, const P case Toolkit::TextEditor::Property::GRAB_HANDLE_PRESSED_IMAGE: { const std::string imageFileName = value.Get< std::string >(); - DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextEditor %p GRAB_HANDLE_PRESSED_IMAGE %s\n", impl.mController.Get(), imageFileName ); + DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextEditor %p GRAB_HANDLE_PRESSED_IMAGE %s\n", impl.mController.Get(), imageFileName.c_str() ); if( impl.mDecorator && imageFileName.size() ) { diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp index d496944..745a5a5 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp @@ -434,7 +434,7 @@ void TextField::SetProperty( BaseObject* object, Property::Index index, const Pr case Toolkit::TextField::Property::GRAB_HANDLE_IMAGE: { const std::string imageFileName = value.Get< std::string >(); - DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextField %p GRAB_HANDLE_IMAGE %s\n", impl.mController.Get(), imageFileName ); + DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextField %p GRAB_HANDLE_IMAGE %s\n", impl.mController.Get(), imageFileName.c_str() ); if( impl.mDecorator && imageFileName.size() ) { @@ -446,7 +446,7 @@ void TextField::SetProperty( BaseObject* object, Property::Index index, const Pr case Toolkit::TextField::Property::GRAB_HANDLE_PRESSED_IMAGE: { const std::string imageFileName = value.Get< std::string >(); - DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextField %p GRAB_HANDLE_PRESSED_IMAGE %s\n", impl.mController.Get(), imageFileName ); + DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextField %p GRAB_HANDLE_PRESSED_IMAGE %s\n", impl.mController.Get(), imageFileName.c_str() ); if( impl.mDecorator && imageFileName.size() ) { -- 2.7.4