summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/gio
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-05-17 18:54:22 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-05-18 05:33:52 +0000
commit3aebc670e1816a8f4f0759e97d8f39b6aab05044 (patch)
treeaabce7a2757deb868d7e5b44301c12e310881ca1 /ucb/source/ucp/gio
parentcac5ba9ac59a89c43c052c7bbb8e44fa86d86849 (diff)
Remove include stdio (part2)
Change-Id: Iae58d107d8df1c543a165086fb2b7c288e7121dd Reviewed-on: https://gerrit.libreoffice.org/15775 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'ucb/source/ucp/gio')
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx21
-rw-r--r--ucb/source/ucp/gio/gio_datasupplier.cxx2
-rw-r--r--ucb/source/ucp/gio/gio_mount.cxx1
-rw-r--r--ucb/source/ucp/gio/gio_provider.cxx9
4 files changed, 6 insertions, 27 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index f86ee345ded5..96c7c4b96f2f 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -90,9 +90,7 @@ Content::Content(
: ContentImplHelper( rxContext, pProvider, Identifier ),
m_pProvider( pProvider ), mpFile (NULL), mpInfo( NULL ), mbTransient(false)
{
-#if OSL_DEBUG_LEVEL > 1
- fprintf(stderr, "New Content ('%s')\n", OUStringToOString(m_xIdentifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr());
-#endif
+ SAL_INFO("ucb.ucp.gio", "New Content ('" << m_xIdentifier->getContentIdentifier() << "')\n");
}
Content::Content(
@@ -104,9 +102,7 @@ Content::Content(
: ContentImplHelper( rxContext, pProvider, Identifier ),
m_pProvider( pProvider ), mpFile (NULL), mpInfo( NULL ), mbTransient(true)
{
-#if OSL_DEBUG_LEVEL > 1
- fprintf(stderr, "Create Content ('%s')\n", OUStringToOString(m_xIdentifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr());
-#endif
+ SAL_INFO("ucb.ucp.gio", "Create Content ('" << m_xIdentifier->getContentIdentifier() << "')\n");
mpInfo = g_file_info_new();
g_file_info_set_file_type(mpInfo, bIsFolder ? G_FILE_TYPE_DIRECTORY : G_FILE_TYPE_REGULAR);
}
@@ -744,9 +740,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
}
else
{
-#ifdef DEBUG
- fprintf(stderr, "Unknown property %s\n", OUStringToOString(rValue.Name, RTL_TEXTENCODING_UTF8).getStr());
-#endif
+ SAL_WARN("ucb.ucp.gio", "Unknown property " << rValue.Name << "\n");
aRet[ n ] <<= getReadOnlyException( static_cast< cppu::OWeakObject * >(this) );
//TODO
}
@@ -942,9 +936,7 @@ uno::Any SAL_CALL Content::execute(
ucb::CommandAbortedException,
uno::RuntimeException, std::exception )
{
-#if OSL_DEBUG_LEVEL > 1
- fprintf(stderr, "Content::execute %s\n", OUStringToOString(aCommand.Name, RTL_TEXTENCODING_UTF8).getStr());
-#endif
+ SAL_INFO("ucb.ucp.gio", "Content::execute " << aCommand.Name << "\n");
uno::Any aRet;
if ( aCommand.Name == "getPropertyValues" )
@@ -1015,10 +1007,7 @@ uno::Any SAL_CALL Content::execute(
}
else
{
-#ifdef DEBUG
- fprintf(stderr, "UNKNOWN COMMAND\n");
- //TODO
-#endif
+ SAL_WARN("ucb.ucp.gio", "Unknown command " << aCommand.Name << "\n");
ucbhelper::cancelCommandExecution
( uno::makeAny( ucb::UnsupportedCommandException
diff --git a/ucb/source/ucp/gio/gio_datasupplier.cxx b/ucb/source/ucp/gio/gio_datasupplier.cxx
index 2bcc219c1b67..02c1e11df61e 100644
--- a/ucb/source/ucp/gio/gio_datasupplier.cxx
+++ b/ucb/source/ucp/gio/gio_datasupplier.cxx
@@ -28,8 +28,6 @@
#include "gio_content.hxx"
#include "gio_provider.hxx"
-#include <stdio.h>
-
using namespace com::sun::star;
using namespace gio;
diff --git a/ucb/source/ucp/gio/gio_mount.cxx b/ucb/source/ucp/gio/gio_mount.cxx
index 9b834b83965a..4ac8b2987e60 100644
--- a/ucb/source/ucp/gio/gio_mount.cxx
+++ b/ucb/source/ucp/gio/gio_mount.cxx
@@ -19,7 +19,6 @@
#include "gio_mount.hxx"
#include <ucbhelper/simpleauthenticationrequest.hxx>
-#include <stdio.h>
#include <string.h>
#ifdef __GNUC__
diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx
index 4832f86e2065..527f1ef0b627 100644
--- a/ucb/source/ucp/gio/gio_provider.cxx
+++ b/ucb/source/ucp/gio/gio_provider.cxx
@@ -23,8 +23,6 @@
#include "gio_provider.hxx"
#include "gio_content.hxx"
-#include <stdio.h>
-
using namespace com::sun::star;
namespace gio
@@ -36,12 +34,7 @@ ContentProvider::queryContent(
throw( com::sun::star::ucb::IllegalIdentifierException,
uno::RuntimeException, std::exception )
{
-#if OSL_DEBUG_LEVEL > 1
- fprintf(stderr, "QueryContent: '%s'",
- OUStringToOString
- (Identifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr());
-#endif
-
+ SAL_INFO("ucb.ucp.gio", "QueryContent: " << Identifier->getContentIdentifier());
osl::MutexGuard aGuard( m_aMutex );
// Check, if a content with given id already exists...