summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-08-30 08:38:42 +0300
committerTor Lillqvist <tml@collabora.com>2015-08-30 08:39:05 +0300
commitd11715c4c67be4a991cc9fee72ae1c015eac3745 (patch)
tree95327d2cc343254d9cb4c1564ae35f7c592b76ee /sc/source/core
parentd23a1f4dabda939a216293c150c3679b0979d0bd (diff)
Don't check SAL_DETAIL_ENABLE_LOG_INFO, check SAL_LOG_INFO
SAL_DETAIL_ENABLE_LOG_INFO is always defined, as "true" or "false". It is SAL_LOG_INFO that is defined or not, and can be used to avoid unnecessary non-trivial code that the compiler might not be able to optimise away. Change-Id: I07a17f2a3668f5776f56663d9cd5a0e238b1e9ce
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index b4882d95566c..c5b282201c70 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -135,7 +135,7 @@ std::string StackVarEnumToString(StackVar const e)
return std::to_string(static_cast<int>(e));
}
-#ifdef SAL_DETAIL_ENABLE_LOG_INFO
+#ifdef SAL_LOG_INFO
std::string linenumberify(const std::string& s)
{
std::stringstream ss;
@@ -3807,7 +3807,7 @@ void DynamicKernel::CodeGen()
decl << ") {\n\tint gid0 = get_global_id(0);\n\tresult[gid0] = " <<
DK->GenSlidingWindowDeclRef() << ";\n}\n";
mFullProgramSrc = decl.str();
-#ifdef SAL_DETAIL_ENABLE_LOG_INFO
+#ifdef SAL_LOG_INFO
std::stringstream area;
if (mKernelSignature[0] == '_')
area << "sc.opencl.source." << mKernelSignature.substr(1, std::string::npos);